Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Finding a Substring Within a String in php

Sun Oct 26, 2008 10:31 pm

Code:
<?
$membership 
"My name is dfasd";
if ( 
strstr$membership"member" ) )
   print 
"Welcome our member";
else
   print 
"Welcome our guest ";

?>




Post a reply
  Related Posts  to : Finding a Substring Within a String in php
 total ocurrence of substring in sting     -  
 finding the largest integer     -  
 Finding The Blinking Cursor     -  
 recursive string reversal- reverse string     -  
 Splitting a String Based on a Found String     -  
 check if string ends with specific sub-string in php     -  
 check if string start with a specific sub-string in PHP     -  
 String token for string split     -  
 Pad a string to a certain length with another string     -  
 String Flatten (C++)     -  

Topic Tags

PHP Strings