I have input field that i fill array when i dump that array become string type.
my input on field : ['name'=>'juned']
Condition :
$value = "array()";
Expected Output :
$value = array();
I want to fill input with array type and get it as array type again.
Please help me, thank you.
Would something like this work for you?
if ($value == "array()")
$value = array();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.