Article validé
--------------
L'article "|set" vient d'être publié par denisb.
** |set **
par jack
le lundi 8 février 2016
The filter |setnom affects the current value to the variablenom. It is an alternative, sometimes more convenient to write, to the tag #SETnom,valeur. So : [(#TEXTE|mb_strlen|setlongueur)] [(#GETlongueur) caractères] is the equivalent of [(#SETlongueur,[(#TEXTE|mb_strlen)])] [(#GETlongueur) caractères] The second argument of the filter |set, if it is not null, indicates to "continue", that is to say, pass the value in the sequence of filters, or display if one is at the end of the chain : [(#TEXTE*|setbrut,1|propre|settraite,1|mb_strlen|setlongueur,1)] store plain text in the variable brut, the text treated in traite, the number of characters in longueur, and display the value (...)
->http://www.spip.net/en_article6011.html
![]()