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