Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 21, 2020 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e53dbd3db9a4a329cc5054b8403371d5 to your computer and use it in GitHub Desktop.
Save parzibyte/e53dbd3db9a4a329cc5054b8403371d5 to your computer and use it in GitHub Desktop.
<?php
for ($i = 0; $i < strlen($letras); $i++) {
$letra = $letras[$i];
$contador = 0;
for ($x = 0; $x < strlen($texto); $x++) {
$actual = $texto[$x];
if ($actual === $letra) {
// Letra encontrada :)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment