⟩ How to split a string into array using php?
$myString = "My Name Is Muhammad Hussain";
$myArray = explode(' ', $myString);
print_r($myArray);
Output :
Array
(
[0] => My
[1] => Name
[2] => Is
[3] => Muhammad
[4] => Hussain
)
My [1] => Name [2] => Is ..." />
$myString = "My Name Is Muhammad Hussain";
$myArray = explode(' ', $myString);
print_r($myArray);
Output :
Array
(
[0] => My
[1] => Name
[2] => Is
[3] => Muhammad
[4] => Hussain
)
Differentiate between a template class and class template in programming?
When does a name clash occur in programming?
What do you mean by programming analysis and design?
Differentiate between the message and method in programming?
What are the steps involved in designing in programming?
What is a modifier explain?
What is a dangling pointer in programming?
What do you meant by active and passive objects?
Differentiate persistent & non-persistent programming objects?
Whether unified method and unified modeling language are same or different?