|
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 ? *jatino (2011-02-11 17:37:28) PHP split or explode ? break out the data values in the string $phrase='one--two--three--four' into an array variable $word See also 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. admin Other websites The following links might be less relevant, please change their ranks if you find them useful. ![]() ![]() blog.brianhartsock > 2007/06/11
![]() ![]() blog.bluefur > 2009/04/22 : Vancouver - Calgary - Edmonton - Regina - Winnipeg - Toronto -... ![]() ![]() developertutorials > tutorials ![]() ![]() bytes > topic a recursive function that traverse the multi-dimensional array using... ![]() ![]() coderholic > beware 10 More Puzzle Websites to Sharpen Your Programming... ![]() ![]() geekinterview > question details/44344 Above answer was rated as good by the following... What is difference between call by value and call by reference in... ![]() ![]() experts exchange > Web Development/Web Languages Standards ![]() ![]() codingforums > archive/index. Split / explode a variable containing a command -... ![]() ![]() forums.devshed > c programming 42/equivalent to Safari Books Online provides searchable, on-demand access to... Warburton's the largest independently owned bakery in the UK faced a... ![]() ![]() bugs.php > bug. ![]() ![]() adityakothadiya > 2009/01/splitting strings in Interesting quotes on Customer Service, Entrepreneurship and... Splitting strings in PHP using explode Vs split... Jack Dorsey on Drawing Ideas, Recognizing Luck, Iterating Product,... ![]() ![]() brainbell > tutorials ![]() ![]() phphelpresource ![]() ![]() bigresource I'm trying to make a search thru my mySQL database, so it any... I need to explode the following file around | but the problem is... ![]() ![]() script.wareseeker In this tutorial you will learn about Initializing Strings, Reading... It is often necessary to arrange the elements in an array in... Returns an array of strings, each of which is a substring of string... ![]() ![]() phpexplode Is it possible to split on the TAB character? Suppose I have: $data... A domain just for this! Do this for all PHP functions and you are... ![]() ![]() kevin.vanzonneveld > techblog/article/javascript equivalent for ![]() ![]() nuclearscripts ![]() ![]() php.net > manual/pl/function.explode. //the function //Param 1 has to be an Array //Param 2 has to be a... // converts pure string into a trimmed keyed array... If you are going to use foreach after explode(), call reset() before... ![]() ![]() hotscripts > listing/explode split a string by string ![]() ![]() crivionweb ![]() ![]() trap17 > index. ![]() ![]() mail archive ![]() ![]() wellho > resources/ex. ![]() ![]() php ref > bapi/02 split 文字列を暗号化する( crypt()、md5()、sha1()、str_rot13()... 文字列を置換する( strtr()、str_replace()、str_ireplace()... ![]() ![]() olate > articles/212 Now just to use an example with the limit parameter specified:... Ok, so from the prototype above, we can see the function explode()... string string [, int limit]) The first parameter you must specify... ![]() ![]() infernodevelopment > perfect c string explode split ![]() ![]() sitepoint > forums//showthread. Then modify it to explode(': ',$element The method is still... Im not sure your code you listed would work lets take this for... ![]() ![]() phpjs > functions/explode:396 // Splits a string on string separator and return array of... ![]() ![]() webhostingtalk > showthread. put spaces after the commas you want to split on... While it would most definitely be best to use a separator other than... ![]() ![]() matthom > archive/2005/06/22/code mnemonics function validate_feedback() { var feedback_form =... ![]() ![]() marc > ?l= ![]() ![]() php mysql articles.blogspot > 2007/11/javascript explode function There's no trackback at the moment.
[Games online]
[Last topics]
[Glossary]
[Help]
[Membership]
[About]
[Social network] [Hot news] [Discussions] [Seo forums] [Meet people] [Directory] |