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 ?



(more options below)

ficgs
Suggestions

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

 Everything PHP: Explode and Split | BlueFur.com
blog.bluefur > 2009/04/22

 The Explode Function, Split a String by String
developertutorials > tutorials

 Explode vs Split - bytes
bytes > topic

 Coderholic » Blog Archive » Beware PHP’s split()
coderholic > beware

 PHP - What is the difference between Split and Explode
geekinterview > question_details/44344

 Split a string into key value pairs : php, split, explode, list
experts-exchange > Web_Development/Web_Languages-Standards

 Split / explode a variable containing a command - possible? [Archive] - CodingForums.com
codingforums > archive/index.



ficgs
More websites

You must register to see these links, as this is a collaborative page, then you may change the order of the links by clicking the icons before the titles.


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

 PHP Bugs: #8355: split() and explode() only accepts 2 parameters
bugs.php > bug.

 Splitting strings in PHP using explode Vs split functions at Aditya Kothadiya
adityakothadiya > 2009/01/splitting-strings-in

 Php - Split Tutorials
brainbell > tutorials

 Split a string into parts using explode | PHP Help Resource and Tutorials
phphelpresource

 PHP :: Split Large Xml Files
bigresource

 Explode -- Split a string by string
script.wareseeker

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

 Javascript equivalent for PHP's split
kevin.vanzonneveld > techblog/article/javascript_equivalent_for_

 Explode -- Split a string by string
nuclearscripts

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

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

 PHP Tutorials - Crivion’s Blog » PHP Tutorial : Explode function to split words
crivionweb

 Using The / As A Delimiter In The Split Function
trap17 > index.

 Re: [PHP] * quoted strings
mail-archive

  * in Lua - Lua example
wellho > resources/ex.



admin
Other websites

The following links might be less relevant, please change their ranks if you find them useful.


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

 Olate - PHP - The explode() Function
olate > articles/212

 Perfect C++ String Explode Split | Programming Tutorials
infernodevelopment > perfect-c-string-explode-split

 PHP Split by ": " and "\n" ?? - SitePoint Forums
sitepoint > forums//showthread.

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

 [PHP] split a string by comma - Web Hosting Talk - The largest, most influential web hosting community on the Internet
webhostingtalk > showthread.

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

 'RE: [PHP3] split oddness' - MARC
marc > ?l=

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



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



 


Photo blog selected : girl.of.the.day

girl.of.the.day - September 03, 2010   girl.of.the.day - September 02, 2010   girl.of.the.day - September 01, 2010  
A new picture tomorrow morning, around 10 a.m.



 

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

Most active users are promoted here, knowledge is nothing if not shared!

1. thibault : 3797 points, see the blog
2. sympa : 1442 points, see the blog
3. girl.of.the.day : 919 points, see the blog
4. lol : 836 points, see the blog
5. longert : 800 points, see the blog

Points take account of the quality of the posts, instantly and after moderation!


Pagerank       Copy this code to display your site's Pagerank




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






Tip of the day :

Protect your files on Megaupload or Rapidshare, and promote your website !

You may use this free 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 :