View Single Post
Old 06-10-2008, 11:52 AM   #1 (permalink)
pipesportugal
The Contributor
 
pipesportugal's Avatar
 
Join Date: May 2008
Location: Oporto-Portugal
Posts: 32
Thanks: 11
pipesportugal is on a distinguished road
Default 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
pipesportugal is offline  
Reply With Quote