Created
February 5, 2019 22:28
-
-
Save parzibyte/b61bfdb99c750f59fb420e9e88375405 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Ejemplo 7 para generar códigos de barras | |
* con PHP | |
* | |
* Poner múltiples imágenes cuya fuente será | |
* el script del ejemplo 6 | |
* | |
* @author parzibyte | |
*/ | |
# Un arreglo de códigos para ejemplificar | |
$codigos = [ | |
"123", | |
"666", | |
"parzibyte.me", | |
"hola", | |
"885548", | |
"php.net", | |
"ABC-123" | |
]; | |
?> | |
<!-- Y ahora hacer un ciclo en donde se imprimen las imágenes --> | |
<?php foreach ($codigos as $codigo) {?> | |
<h4>Con código <?php echo $codigo; ?>: </h4> | |
<img src="ejemplo6.php?texto=<?php echo $codigo; ?>"> | |
<?php }?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment