2013-12-18 2 views

답변

3

explode.

$p_list = "1,2,3,4"; 
$array = explode(',', $p_list); 

Codepad를 참조하십시오.

1

$a=explode(",","1,2,3,4");

0

이 시도 폭발보십시오 :

In PHP, explode function will convert string to array, If string has certain pattern. 

<?php 
     $p_list = "1,2,3,4"; 

     $noArr = explode(",", $p_list); 

     var_dump($noArr); 
?> 

You will get array with values stores in it. 
  • 감사
관련 문제