Skip to content
Advertisement

Tag: optgroup

PHP grouping of options in optgroup

I am working on a woocommerce site and I need to find a way to group select options in optgroups. My option are stored as array like No what I need is to make by php a select that would group the options in optgroup by using the string up to first space By using the function I can split

Advertisement