MikeDXUNL Posted June 11, 2008 Share Posted June 11, 2008 Well, I have the php coding: <?php $in_gamepic = strstr($in_gamepic, '"', true); echo $in_gamepic; ?> this should return the first half of my variable; but instead it gives me the error: Warning: Wrong parameter count for strstr() in C:\wamp\www\achunlocked\addgame.php on line 67 if I remove true then it correctly displays the last half of my variable. but I need the first half. Thanks in advance, Mike Link to comment https://forums.phpfreaks.com/topic/109686-solved-strstr-true-problem-help/ Share on other sites More sharing options...
pugboy Posted June 11, 2008 Share Posted June 11, 2008 Make sure you have PHP 5. The last parameter was introduced in 5.3.0 Link to comment https://forums.phpfreaks.com/topic/109686-solved-strstr-true-problem-help/#findComment-562837 Share on other sites More sharing options...
MikeDXUNL Posted June 11, 2008 Author Share Posted June 11, 2008 Gah! I saw that when reading the PHP manual. My upgrade must have not installed correctly ________________________________________ I am, indeed, running 5.2.6; thanks for the idea of checking! Link to comment https://forums.phpfreaks.com/topic/109686-solved-strstr-true-problem-help/#findComment-562839 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.