Welcome Guest, Not a member yet? Register   Sign In
strstr function
#1

[eluser]Dynamica Technology[/eluser]
Hi

I have this code

Code:
$needle = ',';
  $haystack=$fb_data['me']['location']['name'];
  $before_needle='TRUE';

  $db_data=array(
    'city'=>strstr($haystack, $needle, $before_needle)
   );

when run the app I have this error

Quote:Severity: Warning

Message: Wrong parameter count for strstr()

Filename: models/facebook_model.php

Line Number: 85

if not use the needle the function work.

Could you help me.
Thanks


Messages In This Thread
strstr function - by El Forum - 11-12-2012, 07:49 PM
strstr function - by El Forum - 11-12-2012, 08:07 PM
strstr function - by El Forum - 11-12-2012, 09:11 PM
strstr function - by El Forum - 11-12-2012, 09:18 PM
strstr function - by El Forum - 11-12-2012, 09:29 PM
strstr function - by El Forum - 11-13-2012, 05:18 AM
strstr function - by El Forum - 11-13-2012, 11:15 AM
strstr function - by El Forum - 11-13-2012, 12:26 PM
strstr function - by El Forum - 11-14-2012, 05:56 PM
strstr function - by El Forum - 11-14-2012, 05:56 PM



Theme © iAndrew 2016 - Forum software by © MyBB