S
S
sergeyviktorovich2021-07-07 11:45:28
1C-Bitrix
sergeyviktorovich, 2021-07-07 11:45:28

How to convert the color in which array %23dd3333 to #dd3333 format?

did so, but it's a function for url not for string echo urldecode(esc_attr( $font_container )), right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2021-07-07
@alexeyshi

Why not for a string? Here is an example:

$a = '%23dd3333';
$b = urldecode($a);

echo $b;

For the future: try to punctuate and describe your problem in more detail. What array? What's inside this array. There are no psychics here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question