We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum
Using perch_content for a PHP variable
Hi, I need to remove whitespace for a number hyperlink
<a href="callto:<?php $string = perch_content('Mobile'); $res = preg_replace("/[^a-zA-Z0-9]/", "", $string); echo $res; ?>"><?php perch_content('Mobile'); ?></a>
But I am not able to remove white spaces, do I need to do something with that perch variable?
Want to reply to this thread?Login with Perch