note 123910 added to function.explode

From: Date: Thu, 06 Jun 2019 16:55:10 +0000
Subject: note 123910 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-211190@lists.php.net to get a copy of this message
It toke me about 1 day to find out the problem. (almost?) every function in PHP has a logical build as argument 1: Entity where the operation is based upon and 2 - the operand in the process. But with the explode-function the order is reversed and different. First the operand (delimiter) and second the string to be managed. Not quite logical compared to other needle-haystack-functions. And yes, If you're reading the format it should be no problem. Just hoping to help somebody else. ---- Server IP: 208.43.231.9 Probable Submitter: 185.85.3.195 (proxied: 77.161.109.254) ---- Manual Page -- http://php.net/manual/en/function.explode.php Edit -- https://master.php.net/note/edit/123910 Del: integrated -- https://master.php.net/note/delete/123910/integrated Del: useless -- https://master.php.net/note/delete/123910/useless Del: bad code -- https://master.php.net/note/delete/123910/bad+code Del: spam -- https://master.php.net/note/delete/123910/spam Del: non-english -- https://master.php.net/note/delete/123910/non-english Del: in docs -- https://master.php.net/note/delete/123910/in+docs Del: other reasons-- https://master.php.net/note/delete/123910 Reject -- https://master.php.net/note/reject/123910 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#211190) next »