Top "Explode" questions

explode() is a PHP function that splits a string based on a delimiter, returning an array.

"Empty delimiter" Warning when using PHP explode() function

In javascript, var myStringToArray = myString.split(''); is perfectly acceptable. But in PHP, $My_String_To_Array = explode('', $My_…

php split explode php-7
PHP explode function blank array element

I'm having a few issues with the php explode function. The string i want to explode is: ,.stl,.ppl Currently, …

php function explode
Spark dataframe add a row for every existing row

I have a dataframe with following columns: groupid,unit,height ---------------------- 1,in,55 2,in,54 I want to create another dataframe with …

scala apache-spark apache-spark-sql explode
In PHP, how can I split a string by whitespace, commas, and newlines at the same time

Possible Duplicate: How to split a string by multiple delimiters in PHP? What would be the most efficient way to …

php arrays split explode delimiter
end(explode) Strict Standards: Only variables should be passed by reference in

I have this code to get the extension of a file: $extension = end(explode(".", $_FILES["rfile"]["name"])); That is working …

php explode
Explode and get a value in one line of code

Can you write the following in one line of code? $foo = explode(":", $foo); $foo = $foo[0];

php arrays explode
how to remove comma white space during explode and replace?

$data = "google,facebook,youtube,twitter,bing"; $exp = explode(",",$data); $rep = str_replace("facebook",$exp); $final = implode(",",$rep); echo $final output// …

php csv explode string
Regular expression as delimiter in explode()

So I have a string which I'm turning into an array but I want to separate each word using a …

php arrays regex explode
PHP case-insensitive explode()

I have the following code: explode("delimiter", $snippet); But I want that my delimiter is case-insensitive.

php string explode case-insensitive
php explode and force array keys to start from 1 and not 0

I have a string that will be exploded to get an array, and as we know, the output array key …

php arrays explode array-key