Discussions















                                          
User   Password   remember     (register)  ?

PHP split or explode ?


Back to programming.


guest-phpsplit    (2009-04-07)
 
PHP split or explode ?

Hi,

Recently I've encountered a problem with the PHP split() function when the string to split in an array was really big. I did not find a solution, so I divided the string in several parts, really awful !

I read that the split() and explode() functions were the same ones so I tried to use explode() instead and surprise surprise now it works fine. I can't explain.

What's the problem with the split() function ?  Aren't the code the same one for both functions ??  Is it recommended to avoid to use the split() function and other PHP functions ?


ficgs
Suggestions

 PHP: explode() vs. split() | Brian Hartsock's Blog
blog.brianhartsock.com/2007/06/11/php-explode-vs-split/

 Everything PHP: Explode and Split | BlueFur.com
blog.bluefur.com/2009/04/22/php-explode-split/

 The Explode Function, Split a String by String
www.developertutorials.com/tutorials/php/php-explode-function-050316/page1.

  Explode vs Split - bytes
bytes.com/topic/php/answers/668070-explode-vs-split

 Coderholic » Blog Archive » Beware PHP’s split()
www.coderholic.com/beware-phps-split/

 PHP - What is the difference between Split and Explode
www.geekinterview.com/question_details/44344

 Split a string into key value pairs : php, split, explode, list
www.experts-exchange.com/Web_Development/Web_Languages-Standards/PHP/Q_2423



ficgs
More suggestions

This is a collaborative page, you may change the order of these suggestions by registering, then clicking the icons before the titles.


  Split / explode a variable containing a command - possible? [Archive] - CodingForums.com
www.codingforums.com/archive/index.php/t-107887.html

 equivalent to PHP explode or PERL split - Dev Shed
forums.devshed.com/c-programming-42/equivalent-to-php-explode-or-perl-split

 PHP Bugs: #8355: split() and explode() only accepts 2 parameters
bugs.php.net/bug.php?id=8355&edit=1

  Splitting strings in PHP using explode Vs split functions at Aditya Kothadiya
adityakothadiya.com/2009/01/splitting-strings-in-php-using-explode-vs-split

 Php - Split Tutorials
www.brainbell.com/tutorials/php/Split.html

 Split a string into parts using explode | PHP Help Resource and Tutorials
www.phphelpresource.com/php/split-a-string-into-parts-using-explode

 PHP :: Split Large Xml Files
www.bigresource.com/PHP-split-large-xml-files-OB5HcuqY.html

 Explode -- Split a string by string
script.wareseeker.com/PHP/explode-split-a-string-by-string.zip/19641

 PhpExplode.com - A Beginner's Guide to Using Explode() in PHP
www.phpexplode.com/

 Javascript equivalent for PHP's split
kevin.vanzonneveld.net/techblog/article/javascript_equivalent_for_phps_spli

 Explode -- Split a string by string
nuclearscripts.com/php/tips-and-tutorials/introduction-to-php/explode-split

 PHP: explode - Manual
php.net.pl/manual/pl/function.explode.php

 Explode -- Split a string by string | PHP Introduction to PHP | Hot Scripts
www.hotscripts.com/listing/explode-split-a-string-by-string/

 PHP Tutorials - Crivion’s Blog » PHP Tutorial : Explode function to split words
www.crivionweb.com/phpblog/php-tutorial-explode-function-to-split-words/

 Using The / As A Delimiter In The Split Function
www.trap17.com/index.php/using-as-delimiter-split-function_t45683.html

 Re: [PHP] split or explode quoted strings
www.mail-archive.com/php-general@lists.php.net/msg180362.html

  split or explode in Lua - Lua example
www.wellho.net/resources/ex.php4?item=u108/split

 PHPリファレンス(split()、spliti()、explode())
www.php-ref.com/bapi/02_split.html

 Olate - PHP - The explode() Function
www.olate.co.uk/articles/212

 Perfect C++ String Explode Split | Programming Tutorials
www.infernodevelopment.com/perfect-c-string-explode-split

 PHP Split by ": " and "\n" ?? - SitePoint Forums
www.sitepoint.com/forums//showthread.php?t=581203

 JavaScript explode - PHP.JS
phpjs.org/functions/explode:396

 [PHP] split a string by comma - Web Hosting Talk - The largest, most influential web hosting community on the Internet
www.webhostingtalk.com/showthread.php?t=700871

 Matt Thommes / Code mnemonics: PHP implode/explode
matthom.com/archive/2005/06/22/code-mnemonics-php-implode-explode

 'RE: [PHP3] split oddness' - MARC
marc.info/?l=php-general&m=92549420305787&w=2

 PHP Articles. MySQL Articles: Javascript explode function
php-mysql-articles.blogspot.com/2007/11/javascript-explode-function.html



Response  
  Smilies

Guest name   (optional)       Register for more options.



Trackbacks : If you talked about this article in your blog or website, you may instantly get a backlink 
  There's no trackback at the moment.









 

FICGS message




Discussions



 


Q / A : You may write any question (and answer) in 10 languages :


 

Buttons: Facebook, Twitter, MySpace, Google, Technorati, Yahoo buzz... Ficgs Facebook Myspace Twitter Google Technorati Stumble upon Delicious Digg Yahoo buzz Wikio Furl Reddit Linkedin Squidoo Newsvine Yahoo My Web Blogmarks Comments Blinklist Email

U comment I follow : The "nofollow" tag will be removed in links included in valuable content.


Write upside down !
(works with Twitter, Facebook, MySpace, Youtube, MSN, Yahoo, Bebo, Hi5...)






Tip of the day :

Promote your website & protect your Megaupload or Rapidshare links !

Here is the simplest tool : Protect your links




FICGS is also a Free Internet Correspondence Games Server.

Here you can play Chess, Go & Poker Texas Holdem online for free in rated class tournaments and a unique world championship.

Free Internet Chess & Go Server


Feel free to link to FICGS :