learndash_is_valid_JSON( string $string = '' )

Checks whether a string is a valid JSON or not.


Description Description


Parameters Parameters

$string

(Optional) The string to check.

Default value: ''


Top ↑

Return Return

(boolean) Returns true if the string is valid json otherwise false.


Top ↑

Source Source

File: includes/ld-misc-functions.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.