Explain php explode() function.



Explain php explode() function...

Answer / Ajay Kumar Singh

The PHP explode() function breaks a string into an array by separating the string with a specified delimiter. For example:

```php
$text = 'This is a test';
$parts = explode(' ', $text);
print_r($parts); // Array ( [0] => This [1] => is [2] => a [3] => test )
```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Tell me what is the meaning of a final class and a final method?

1 Answers  


What is php in full?

1 Answers  


How to return a value back to the function caller?

1 Answers  


Explain how to submit form without a submit button.

1 Answers  


Where can I learn php?

1 Answers  


Where is my php ini file?

1 Answers  


How to convert a character to an ascii value?

1 Answers  


How to receive a cookie from the browser?

1 Answers  


1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10

14 Answers   Aquasol, Infosys, TCS, Torque Infotech,


Explain how we can get the number of elements in an array?

1 Answers  


What does the unset() function means?

1 Answers  


Tell me what type of operation is needed when passing values through a form or an url?

1 Answers  


Categories