note 91547 added to function.explode

From: Date: Tue, 16 Jun 2009 15:41:32 +0000
Subject: note 91547 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-156924@lists.php.net to get a copy of this message
Seems like lots of employers are using a low-level question like "How would you isolate the word 'jumped' from the 'quickbrownfoxjumpedoverthelazydog' using explode()?" Easy answer. $original = "'quickbrownfoxjumpedoverthelazydog"; $exploded = explode('jumped', $original); $replaced = str_ireplace($exploded, '', $original); echo $replaced; //jumped ---- Server IP: 209.41.74.194 Probable Submitter: 64.126.123.179 ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- https://master.php.net/note/edit/91547 Del: integrated -- https://master.php.net/note/delete/91547/integrated Del: useless -- https://master.php.net/note/delete/91547/useless Del: bad code -- https://master.php.net/note/delete/91547/bad+code Del: spam -- https://master.php.net/note/delete/91547/spam Del: non-english -- https://master.php.net/note/delete/91547/non-english Del: in docs -- https://master.php.net/note/delete/91547/in+docs Del: other reasons-- https://master.php.net/note/delete/91547 Reject -- https://master.php.net/note/reject/91547 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156924) next »