Re: Help! PRINTF Function
| From: | Dotan Cohen | Date: | Mon, 06 Nov 2006 13:08:13 +0000 |
| Subject: | Re: Help! PRINTF Function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244254@lists.php.net to get a copy of this message | ||
On 06/11/06, ngoc.truong-torche@vd.ch <ngoc.truong-torche@vd.ch> wrote:
Hello, The following examples don't work printf("[%10s]\n", $s); // justification à droite avec des espaces printf("[%-10s]\n", $s); // justification à gauche avec des espaces but this one: printf("[%'#10s]\n", $s); // utilisation du caractère personnalisé de séparation '#' is ok (with any separator) Source: http://ch2.php.net/manual/fr/function.sprintf.php Is it related to French characters set I used for displaying my page ?We'd only know if you told us what "doesn't work" means. Do you get _any_ output? What? Error messages? Are you sure that you're using UTF-8 encoding? Dotan Cohen http://what-is-what.com/what_is/xml.html