note 115308 deleted from function.str-replace by salathe

From: Date: Thu, 03 Jul 2014 12:25:20 +0000
Subject: note 115308 deleted from function.str-replace by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-199826@lists.php.net to get a copy of this message
Note Submitter: detroit303 at microsoft dot com ---- Maybe obvious to veteran PHP programmers but less so to novice PHP programmers is the fact that this is invalid: <?php str_replace($search, $replace, $subject, 1); ?> At a glance it appears to be a reasonable request, until you realize that the fourth parameter must be a variable in order to be passed as a reference. A replacement: <?php str_replace($search, $replace, $subject, $temp = 1); // or $temp = 1; str_replace($search, $replace, $subject, $temp); ?> _____ http://coralclub24.com/coral-club-product/programma-2-kolo-vada-plyus/

« previous php.notes (#199826) next »