str_shuffle

(PHP 4 >= 4.3.0, PHP 5)

str_shuffle -- Mistura uma string aleatoriamente

Descrição

string str_shuffle ( string str )

str_shuffle() mistura uma string. Uma permutação de todas as possibilidades é criada.

Exemplo 1. str_shuffle() exemplo

<?php
$str
= 'abcdef';
$misturada = str_shuffle($str);

// Isto exibirá algo como: bfdaec
print $misturada;
?>

Veja também shuffle() e rand().

>> Inicio <<
© Copyright hospedia.com.br - 2005
Todos os direitos reservados.
Seu Ponto de Partida na Internet
Receitas de Bolos
Lyrics
centro-top