I am trying to combine an function that separate numbers and also remove the "-" and the "/" characters to separate the attributes.

function sort_numbers($value) { $array = explode(',', $value); asort($array, SORT_NUMERIC); $array = implode('| ', $array); return $array; }

[str_replace( "-", "|", {size[1]})] [str_replace( "-", "/", {size[1]})]

Am also trying to separate and replace the characters like L/XL like the screenshot here [https://prnt.sc/oo73eq][1] to output on separate value in the same function or i need to create another function?

Any help?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.