コード例 #1
1
ファイル: StringProfiles.php プロジェクト: voku/phpperf
 public function profileUtf8StrShuffleMediumString()
 {
     UTF8::str_shuffle("abcdefghijklmnopqrstuvwxyz");
 }
コード例 #2
0
ファイル: Stringy.php プロジェクト: voku/stringy
 /**
  * A multibyte string shuffle function. It returns a string with its
  * characters in random order.
  *
  * @return Stringy Object with a shuffled $str
  */
 public function shuffle()
 {
     $shuffledStr = UTF8::str_shuffle($this->str);
     return static::create($shuffledStr, $this->encoding);
 }