분류 php

복잡한 데이터 유형 캡슐화

컨텐츠 정보

  • 조회 937 (작성일 )

본문

코드 : 

$fruits = array('apple', 'orange', 'apple'); 

$str = serialize($fruits); 
echo "$str\n"; 

$new_fruits = unserialize($str); 
$new_fruits[] = 'apple'; 
print_r($new_fruits); 



php