strip function

strip function:

##Web developers encounter spaces and carriage returns many times A situation that affects the HTML output (a browser "feature") whereby you have to run all the tags in the template in order to get a specific result.

Usually when it is difficult to understand or process This problem is encountered in the template.

Smarty will remove any leading and trailing spaces and carriage returns from the data in the {strip}{/strip} tag before displaying.

This ensures that the template is easy to understand and you don’t have to worry about extra spaces causing problems.


## eg:

##{strip}

<table border=0>

                                                                                      {$url}">                                                                                                                      < tr>
</table>
{/strip}


Output:

<table border=0><tr><td>< ;A HREF="http://my.domain.com"><font color="red">This is a test</font></A></td></tr> </table>


Continuing Learning
||
<?php echo "trip函数";
submitReset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!