Problem with parameter count in strstr()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to ensure that all data added to each element of $my_data_array 
has no commas, however I get an error message saying Warning: Wrong 
parameter count for strstr()

$my_data_array[] =
          strstr( $data[1], ",", " " );
          strstr( $data[2], ",", " " ).', '.
          strstr( $data[3], ",", " " ).', '.
          strstr( $data[6], ",", " " ).', '.
          strstr( $data[13], ",", " " ).', '.
          strstr( $data[14], ",", " " ).', '.
          strstr( $data[15], ",", " " ).', '.
          strstr( $data[16], ",", " " ).', '.
          strstr( $data[17], ",", " " ).', '.
          strstr( $data[18], ",", " " ).', '.
          strstr( $data[19], ",", " " ).', '.

Could someone tell me what I am doing wrong here please?

Thank you 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux