Rapide Advanced Adulte
 
 Web|Image|Shop|Video|News|Wmx|Mobile|Wiki|Ajouter ce moteur

     Manuel PHP     
Partager
 
 
Partager
Partager

 

Table :

.addcslashes
.addslashes
.bin2hex
.chop
.rtrim()
.chr
.chunk split
.convert cyr string
.convert uudecode
.convert uuencode
.count chars
.crc32
.crypt
.echo
.explode
.fprintf
.get html translation table
.htmlspecialchars()
.htmlentities()
.hebrev
.hebrevc
.html entity decode
.htmlentities
.htmlspecialchars decode
.htmlspecialchars
.implode
.join
.implode()
.levenshtein
.localeconv
.ltrim
.md5 file
.md5
.metaphone
.money format
.nl langinfo
.nl2br
.number format
.ord
.parse str
.print
.printf
.quoted printable decode
.quotemeta
.rtrim
.setlocale
.sha1 file
.sha1
.similar text
.soundex
.sprintf
.sscanf
.str getcsv
.chaîne de caractères
.str ireplace
.str replace()
.str pad
.str repeat
.str replace
.str rot13
.str shuffle
.str split
.str word count
.strcasecmp
.strchr
.strstr()
.strcmp
.strcoll
.strcspn
.strip tags
.stripcslashes
.addcslashes()
.stripos
.stripslashes
.stristr
.strlen
.strnatcasecmp
.strnatcmp
.strncasecmp
.strncmp
.strpbrk
.strpos
.strrchr
.strrev
.strripos
.strrpos
.strspn
.strstr
.strtok
.strtolower
.strtoupper
.strtr
.substr compare
.substr count
.substr replace
.substr
.trim
.ucfirst
.ucwords
.vfprintf
.vprintf
.vsprintf
.wordwrap
 
   

  vfprintf  


vfprintf

(PHP 5)

vfprintf -- Ecrit une chaîne formatée dans un flux

Description

int vfprintf ( resource handle, string format, array args )

vfprintf() écrit une chaîne produite en accord avec le paramètre format dans le flux handle. format est décrit dans la page de documentation de la fonction sprintf().

Agit de la même façon que fprintf() excepté que vfprintf() accepte un tableau d'arguments, plutôt qu'un nombre variant d'arguments.

Retourne la longueur de la chaîne produite.

Voir aussi printf(), sprintf(), sscanf(), fscanf(), vsprintf() et number_format().

Exemples

Exemple 1. vfprintf(): zéro comme caractères d'espacements

<?php
if (!($fp = fopen('date.txt', 'w')))
    return;

vfprintf($fp, "%04d-%02d-%02d", array($year, $month, $day));
// écrira la date formatée ISO dans date.txt
?>


    Annonces       
 

 Retour au chapitre Php

 

Top
 

Ajouter JungleKey.fr à votre Explorateur

 
 

About Us | © 2007 JungleKey




iBlack | Mobile | Wiki | Ajouter ce moteur
.