Jump to content

PHP Mysql


shage

Recommended Posts

without seeing the actual source, this might be helpful to you::

 

$OrgVar = ' Hi There, please replace me' ;
$snr = 'read this.' ;
$UpdatedVar = str_replace( 'replace me', $snr,  $OrgVar ) ;
echo $UpdatedVar ; // output: Hi There, please read this.

 

reference: http://us3.php.net/manual/en/function.str-replace.php

 

good luck

Link to comment
https://forums.phpfreaks.com/topic/69681-php-mysql/#findComment-350163
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.