EUNJIHA / Dev-Tips

👩🏻‍💻Develop 중에 해결한 문제들 issue 작성

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP JSON 형식 출력시, object, array 구분

EUNJIHA opened this issue · comments

commented
# this is for Object
$configuration->timezone` = "+4";

# this is for Array 
$configuration['timezone'] = '+4';
commented
$var1 = Array();
$var2 = (Object)$var1;