Hello there,
I have a JSON Array variable which I retrieve with my php from Android platform:
$JSONkeyword = $_POST['keyword']
;
What I want is to use ''assert'' as I was advised, but I don't know how to do it.
My goal is that if that 'keyword' received from POST method is a String or an out of format array of strings ( because I want to try and POST this values from a HTML also), it converts to an array that recognizes and performs this code:
$keyword = json_decode($JSONkeyword,*true);
And if the file is already an array of strings it just performs that piece of code without going through any transformation.
Can someone help me?