Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ord_nomes = array();
- $nomes = array('andre' => 1 , 'paulo' =>5, 'fabio' => 2,'tiago' =>
- asort($nomes);
- foreach ($nomes as $key => $value){
- if(strcasecmp($key[0],"t") != 0){
- echo "O valor é: ".$value." e o índice é ".$key."<br/>";
- }
- }
- ?>
- <?php
- $ord_nomes = array();
- $nomes = array('andre' => 1 , 'paulo' =>5, 'fabio' => 2,'tiago' =>
- asort($nomes);
- foreach ($nomes as $key => $value){
- if(strcasecmp($key[0],"t") != 0){
- echo "O valor é: ".$value." e o índice é ".$key."<br/>";
- }
- }
- ?>
Add Comment
Please, Sign In to add comment