Hi,
I've been searching high and low for this answer all day and still no luck, so I thought I'd reach out to a fellow PHPer. If you can help I'd be most grateful!
Ok here's the problem I'm trying to solve:
I have a string value of;
show_title=yes,show_intro=no,show_category=yes,show_print_icon=no,show_email_icon=yes
I would like to split the string value in two places (removing the symbol at the same time), at the comma and at the equals. Then I'd like to put the values into an array naming each entry by the value entered before the equals symbol. Like so,
show_title => yes
show_intro => no
show_category => yes
show_print => no
show_email_icon => no
I'm hoping from doing this I can then easily refer to the setting I need later in my script.
if ($array[show_print] == true) {
you get the idea...
}
Thank for your time again!
Matt