[ create a new paste ] login | about

Link: http://codepad.org/LghB9tng    [ raw code | output | fork ]

PHP, pasted on Oct 23:
1
2
3
4
5
6
<?php
 $message_days = "45;62;35";
 $output = array_map('intval', explode(';', $message_days));

 var_dump( $output );
?>


Output:
1
2
3
4
5
6
7
8
array(3) {
  [0]=>
  int(45)
  [1]=>
  int(62)
  [2]=>
  int(35)
}


Create a new paste based on this one


Comments: