Check if a string starts with a given substring.
| 
 startsWith 
 | 
 string,beginner 
 | 
- Use 
strpos() to find the position of $needle in $haystack. 
function startsWith($haystack, $needle)
{
  return strpos($haystack, $needle) === 0;
}
startsWith('Hi, this is me', 'Hi'); // true
License: CC-0
 
 
 
 
                                                             
                            
                            							
							
                         
                        
                                                    
                        
                        
                    
					
				  
					
					
					
				RELATED WEBSITES AND SERVICES
					
					These are paid advertisements or products and services ran by ourselves
					
                    
	
					
				   	
						
					
					
					   	
						
					
						
    
	
                        Privacy preserving, cookieless website visitor tracking for your website completely free. unrive.io
								 
 
					
		
					
										   	
						
					
					
							   	
						
					
						
    
	
                        Choose from over 100 quick & easy to use SEO, webmaster and developer tools. seoyex.com
								 
 
					
					
							   	
						
					
						
    
	
                        Lorum Ipsum Generator, List Randomiser Tool, List Alphabetizer Tools, Case Converter Tools. seoyex.com
								 
 
			
					
												   	
						
					
						
    
	
                        CSS Minifier, JS Minifier, HTML Formatter, CSS Formatter, JS Obfuscator Tools. unrivewebtools.com