Colon in an array for a dropdown

QuestionsColon in an array for a dropdown
Markus H. asked 7 years ago

Good evening,
I'd like to insert a value with a colon in an array for a dropdown. But unfortunately this is already used as syntax. Is there a possibility?
Best regards

2 Answers
Abu Ghufran answered 7 years ago

You can change separator e.g. #

$col["edittype"] = "select";
$col["editoptions"] = array("value"=>"10:05#10:05;20#$20;30#$30;40#$40;50#$50","separator"=>"#");

Markus H. answered 7 years ago

Perfect, works great, many thanks!

Your Answer

6 + 16 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?