<?php $link = 'this is my best <a href="http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeere">http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeere</a> and this is my some text'; preg_match('/<a href="(.+)">/', $link, $match); $shortenedLink = (strlen($match[1]) > 70) ? substr($match[1], 0, 20) . '...' : $match[1]; echo "this is my best <a href='http://www.website.com/andsoooooooooooom_biiiiiiiiiiiiiiiig_characrs_heeeeeeeeer'>$shortenedLink</a> and this is my some text";
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`