Home  >  Article  >  Backend Development  >  php 常用的函数

php 常用的函数

WBOY
WBOYOriginal
2016-06-23 13:38:25760browse

json_encode() 函数介绍


<?php$arr = array       (          'Name'=>'希亚',          'Age'=>20       );$jsonencode = json_encode($arr);echo $jsonencode;?>



{"Name":null,"Age":20}

$php_json = json_decode($php_json);  


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn