how to parse a column in mysql table like <14-abc>;<8-def>;
as:
abc =14
def = 8
abc store value 14 and def stores values 8 and have multiple entries.
So need to store like array or list that should be able to access and
process the parsed data later.
I’m not aware of any parser that support this syntax, so you could write your own parser for something so trivial. Here’s an example, not tested:
Then you can use your awesome array like so:
The input is a
$rowstring, the output is a$outputarray. You can even wrap it into a function 😉