Help! PRINTF Function

From: Date: Mon, 06 Nov 2006 11:46:14 +0000
Subject: Help! PRINTF Function
Groups: php.general 
Request: Send a blank email to php-general+get-244253@lists.php.net to get a copy of this message
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 ? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> Thanks for your advice N. TRUONG

« previous php.general (#244253) next »