06-10-2008, 11:52 AM
|
#1 (permalink)
|
|
The Contributor
Join Date: May 2008
Location: Oporto-Portugal
Posts: 32
Thanks: 11
|
Help with function stristr()
Hello everyone,
I am using the above mentioned function in the following way:
PHP Code:
$text0 = "int(7)";
$text1 = stristr($text0, '(');
echo $text1; // ok! outputs (7)
$text2 = stristr($text0, '(', true);
echo $text2; // I wanted to retrieve the word -> int
I am getting the following error on the second instruction:
Warning: Wrong parameter count for stristr()
I've checked the manual and everything seems to be ok, so what am I doing wrong ?
Can someone help?
pipesportugal
|
|
|
|