How to access or parse key/values that have "string"
Coming from a Perl background (no snickering) and trying to make sense of some new conventions. Not sure whether this is a PHP, WordPress, or Ninja forms question.
$form_data //Ninja parlance
contains:
["value"] = string(8) "John Smith"
["key"]= string(33) "first_and_last_name_1570130204042"
So when I test for a key, it's seeing:
string(33) "first_and_last_name_1570130204042"
Of course, I'm not interested in
string(33)
but in it's 'name' (not sure what it's called)
first_and_last_name_1570130204042
How do I get, in essence:
$form_data['key'] = "first_and_last_name_1570130204042"
without a lot of preg_matches
?
If it were JSON I'd be fine. Read about unserialize
but that doesn't seem to be the ticket.