note 121475 deleted from function.preg-split by cmb

From: Date: Wed, 13 May 2020 15:01:29 +0000
Subject: note 121475 deleted from function.preg-split by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214622@lists.php.net to get a copy of this message
Note Submitter: ASchmidt at Anamera dot net ---- "... as is standard across PHP, you can use NULL to skip to the flags parameter" is not correct. With PHP 7.1 and declare(strict_types=1), specifying NULL for "limit" will not "skip" to the flag. The result is: "TypeError: preg_split() expects parameter 3 to be integer, null given". Instead of NULL, you DO need to specify an explicit integer limit, as in 0 or -1, if no limit is wanted.

« previous php.notes (#214622) next »