Skip to content

Instantly share code, notes, and snippets.

Created May 9, 2013 11:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/5546930 to your computer and use it in GitHub Desktop.
Save anonymous/5546930 to your computer and use it in GitHub Desktop.
<?php
$postos = "ABCDEFGHIJKLMNOPQRSTUVXZ1234567890";
if(strpos($postos,"A") == true){
echo "atendimento.jpg";
}
if(strpos($postos,"B") == true){
echo "banheiros.jpg";
}
if(strpos($postos,"1") == true){
echo "borracharia.jpg";
}
if(strpos($postos,"2") == true){
echo "brindes.jpg";
}
if(strpos($postos,"C") == true){
echo "churrascaria.jpg";
}
if(strpos($postos,"E") == true){
echo "estacionamento.jpg";
}
if(strpos($postos,"G") == true){
echo "gasolina.jpg";
}
if(strpos($postos,"L") == true){
echo "loja.jpg";
}
if(strpos($postos,"3") == true){
echo "lubrificantes.jpg";
}
if(strpos($postos,"T") == true){
echo "troca.jpg";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment