php str_replace garip davranış

2 Cevap php
href=" <?php 
$zzz_stylesheet = "http://127.0.0.1/www/wordpress/wp-content/themes/mytheme/style.css"; 
echo str_replace(".css","-mytheme.css",$zzz_stylesheet);
?>

ama çalışıyor

href=" <?php 
$zzz_stylesheet = bloginfo('stylesheet_url'); 
echo str_replace(".css","-mytheme.css",$zzz_stylesheet);
?>

does not work. Why? bloginfo is a function in Wordpress which returns the value I have used in first code line.

2 Cevap

Siz "= href sonra bir boşluk var

Eğer bu konuda biliyor musunuz. Eğer kod sonra, onu kaldırmak bloginfo () sağlayan eğer beklendiği gibi çalışması gerekir çalışır.