how to find in string finding value in string with PHP
RegisterLogin
how to find in string finding value in string with PHP
Post Description: how to find in string finding value in string with PHP
Tags: how, to, find, in, string, finding, value, in, string, with, PHP
This Post Was Posted On Feb 29, 2008 By web hosting #1326
Post Description: how to find in string finding value in string with PHP
Tags: how, to, find, in, string, finding, value, in, string, with, PHP
This Post Was Posted On Feb 29, 2008 By web hosting #1326
how to find in string finding value in string with PHP by web hosting
strpos()
you can use this function to find a word or letter or number in a string, it its found, it will retrun true.
more info at
http://php.net/manual/en/function.strstr.php
example, lets say i want to know if $string has any words wallpaperama in it
$string = 'wallpaperama has cool and amazing wallpapers';
$find = 'wallpaperama';
if(strpos($string, $find ){
echo 'yes, its found'
}else{
echo 'not found';
}
echo 'yes, its found'
}else{
echo 'not found';
}
Leave Your Comments
Related Pages: [Add Your Website]
Post New Topic
hostman
#1750 1
you can also use this:
http://www.wallpaperama.com/forums/how-to-add-www-on-a-domain-name-infront-of-the-url-t5846.html
http://www.wallpaperama.com/forums/how-to-add-www-on-a-domain-name-infront-of-the-url-t5846.html
Mar 08, 2008 Reply Report abuse
©2011 Webune Forums - Wed Dec 21, 2011 5:27 pm
Powered by: Webune Forums V3
Powered by: Webune Forums V3