note 102067 rejected from function.substr-replace by danbrown

From: Date: Wed, 26 Jan 2011 00:23:46 +0000
Subject: note 102067 rejected from function.substr-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-176312@lists.php.net to get a copy of this message
Note Submitter: marcin_kuzawinski at tlen dot pl ---- Funny. Second parameter may be an array. For example echo substr_replace('xxx', array('a', 'b'), 1, 1); is valid and it prints 'xax'. But array to string conversation should be, and normally is 'Array': echo substr_replace('xxx', (string) array('a', 'b'), 1, 1); Output: xArrayx Maybe it's a bug, maybe it is not. Don't know, don't care. But always good to know.

« previous php.notes (#176312) next »