Hotfix release available: 2025-05-14b "Librarian".
upgrade now! [56.2] (what's this?)
perso:quentin:php
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| perso:quentin:php [2019/09/30 18:20] – modification externe 127.0.0.1 | perso:quentin:php [2025/08/20 09:41] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 69: | Line 69: | ||
| var_dump($app-> | var_dump($app-> | ||
| </ | </ | ||
| + | |||
| + | === Fonction sscanf === | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | > fonction pour " | ||
| + | |||
| + | < | ||
| + | <?php | ||
| + | // Lecture d'un numéro de série | ||
| + | list($serial) = sscanf(" | ||
| + | // et la date de fabrication | ||
| + | $mandate = " | ||
| + | list($month, | ||
| + | echo "Le produit $serial a été fabriqué le : $year-" | ||
| + | |||
| + | |||
| + | // this function is a great way to get integer rgb values from the html equivalent hex. | ||
| + | list($r, $g, $b) = sscanf(' | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
perso/quentin/php.1569860433.txt.gz · Last modified: (external edit)
