Answer the question
In order to leave comments, you need to log in
How to make a change to php?
The $text variable contains the text, among which there is a link like this [id1|Pavel Durov].
How can I change it to
<a href="http://vk.com/id1" target="_blank">Павел Дуров</a>
Answer the question
In order to leave comments, you need to log in
php.net/manual/en/function.explode.php
php.net/manual/en/function.substr.php Explode
by "|", cut "[", "]" before that
This task...
PS: is done by string and/or regular expression functions.
Google...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question