Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
単一の入力文字列に基づいて同様の出力文字列を生成する方法は? ヒント: 出力文字列:
このためのphp関数が見つかりませんでした。
次のようなことを試して、いくつかの非常に基本的な制限のみを考慮した非常に単純なソリューションを実現できます (これで十分かもしれません)。
$input = "mydomain"; $randomNum = rand(127,192); $output = $input.'-'.$randomNum; // Now is mydomain-X where X is between 127 and 192