Welcome! Here you can paste sources and general debugging text, You can even set yourself a password if you want to keep it just for yourself.

Posted by nomesalet on May Wed 16th 9:17 PM - Never Expires - Views: 98

  1. <?php
  2. //Função para gerar nomes aleatórios
  3. // retorna uma string separada por espaços
  4. function gerarNome(){
  5.         $tipo = array(
  6.         1 => "Forum",
  7.         2 => "Congresso",
  8.         3 => "Feira"
  9.         );
  10. $onde = array(
  11.         1 => "Charqueadas",
  12.         2 => "Porto Alegre",
  13.         3 => "Vale dos Sinos"
  14.         );
  15. $doque = array(
  16.         1 => "Linux",
  17.         2 => "Windows",
  18.         3 => "MacOs"
  19.         );
  20.  
  21.         $titulo = $tipo[rand(1,3)]." ".$onde[rand(1,3)]." ".$doque[rand(1, 3)];        
  22.         return $titulo;
  23. }
Language:
To highlight particular lines, prefix each line with @@




© 2018  YSblue.com.br (Implemented and Adapted) - Powered by PASTE 1.0