Home >Backend Development >PHP Tutorial >怎么在字符串前面加上www

怎么在字符串前面加上www

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:56:551171browse

已知字符串$aa=efwef

怎么在字符串前面加上www 变成wwwefwef


回复讨论(解决方案)

字符串拼接  .

$aa='www'.'efwef';
echo $aa;

<?php$aa = 'efwef';$aa = 'www'.$aa;echo $aa;?>

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn