Jump to content

[SOLVED] str_replace for "1" but not for "1994"


koolego

Recommended Posts

 

Hi Gang,

 

I have this

 

Array

(

    [mobile_browser] =>

    [has_pointing_device] => 1

    [model_name] => 2.0

    [brand_name] => generic web browser

    [release_date] => 1994_january

    [unique] => 1

)

 

Code

$valwash = str_replace("1","Yes",$val);

 

 

Result

Array

(

    [mobile_browser] =>

    [has_pointing_device] => YES

    [model_name] => 2.0

    [brand_name] => generic web browser

    [release_date] => YES994_january

    [unique] => YES

)

 

Is their easy way to fix this?

Any pointers would be very help and very welcome.

 

Thanks

 

 

 

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.