note 124761 deleted from function.explode by cmb

From: Date: Wed, 26 Feb 2020 09:05:36 +0000
Subject: note 124761 deleted from function.explode by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214230@lists.php.net to get a copy of this message
Note Submitter: srumberg at gmail dot com ---- Splitting on a single \ delimiter causes a PHP error, even with single quotes. Escape it with a second \, like this: <?php $the_string = 'Hello\World'; list($a, $b) = explode("\\", $the_string); ?>

« previous php.notes (#214230) next »