Why use CJSON encode when we have json_encode

后端 未结 4 402
不思量自难忘°
不思量自难忘° 2021-01-01 09:33

I am building an API for a website using Yii. I know that there is a utility class called CJson and has a function called encode.

As far as I know there are addition

4条回答
  •  难免孤独
    2021-01-01 10:14

    Only thing I can think minimum php version support.

    Yii support php 5.1 as minimum version See Yii Installation Page . While json_encode/json_decode introduced in php 5.2. So It can be a reason for Yii having a library for CJson.

提交回复
热议问题