FUEL CMS User Guide : Version 1.5.2


Compatibility Helper

Compatibility functions helpful for slightly older versions of PHP.

Function Reference [+]

json_encode('$value', ['$options'])

json_decode('$json', ['$assoc'], ['$depth'], ['$options'])

str_getcsv('$string', ['$delimiter'], ['$enclosure'], ['$escape'])

str_putcsv('$input', ['$delimiter'=','], ['$enclosure'='"'])

Not really a compatibility function since it doesn't exist natively in PHP. However it probably should so we provide it here. A version of the original function found here: http://glossword.googlecode.com/svn-history/r600/trunk/core/gw_includes/functions.php.

Returns

mixed

Parameters

(string) $input 
(string) $delimiter 
(string) $enclosure