Create An Array From A String With A Delimiter Character

	$myString = "value1,value2,value3";
	$myArray = explode(',', $myString);
	print_r($myArray);

Create array of individual digits from a number

    $UserPhoneNumber_Array  = array_map('intval', str_split($UserPhoneNumber));
    if ($UserPhoneNumber_Array[0] == 0)
      DoSomething();
    if ($UserPhoneNumber_Array[3] == 0)
      DoSomething();
Feel free to comment if you can add help to this page or point out issues and solutions you have found. I do not provide support on this site, if you need help with a problem head over to stack overflow.

Comments

Your email address will not be published.