Jump to content

[SOLVED] strstr (true) problem, help?


MikeDXUNL

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.