note 49602 deleted from function.str-replace by didou

From: Date: Wed, 02 Feb 2005 19:09:47 +0000
Subject: note 49602 deleted from function.str-replace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84386@lists.php.net to get a copy of this message
Note Submitter: mz at core6 dot de Reason: bad code ---- <?php /* Change $month between 01 and 12 */ $month = '01'; $search = array( '01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12' ); $replace = array( 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dez' ); $month = str_replace($search,$replace,$month); echo $month; ?>

« previous php.notes (#84386) next »