Quantcast
Channel: BlogoSfera » shows
Viewing all articles
Browse latest Browse all 19

Combine php strings with preg_replace into one string

$
0
0

I’m trying to combine three strings into one with preg_replace. I tried to do implode but it didn’t work, just shows nothing. My code: $linktitle = get_the_title(); $links = preg_replace("/.+?( –)/", '', $linktitle); $links2 = preg_replace("/.+?( —)/", '', $linktitle); $links3 = preg_replace("/.+?( )/", '', $linktitle); What I tried to do: $links=array(); $links[] = preg_replace("/.+?( —)/", […]

The post Combine php strings with preg_replace into one string appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 19

Trending Articles