note 49602 added to function.str-replace

From: Date: Wed, 02 Feb 2005 19:03:47 +0000
Subject: note 49602 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-84385@lists.php.net to get a copy of this message
<?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; ?> ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+49602 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49602&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49602&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49602&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49602&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49602&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+49602&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#84385) next »