/about/ + extendedGitGraph
This commit is contained in:
		
							
								
								
									
										19
									
								
								www/extern/egh/Utils.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								www/extern/egh/Utils.php
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| <?php | ||||
|  | ||||
| class Utils | ||||
| { | ||||
| 	public static function sharpFormat($str, $args) | ||||
| 	{ | ||||
| 		foreach ($args as $key => $val) | ||||
| 		{ | ||||
| 			$str = str_replace('{'.$key.'}', $val, $str); | ||||
| 		} | ||||
| 		return $str; | ||||
| 	} | ||||
|  | ||||
| 	public static function startsWith($haystack, $needle) | ||||
| 	{ | ||||
| 		$length = strlen($needle); | ||||
| 		return (substr($haystack, 0, $length) === $needle); | ||||
| 	} | ||||
| } | ||||
		Reference in New Issue
	
	Block a user