אשכול: PHP | Preg_replace
View Single Post
ישן 28-02-08, 19:09   # 1
Labs
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Nov 2007
גיל: 34
הודעות: 1,500
Send a message via Skype™ to Labs

Labs לא מחובר  

PHP | Preg_replace

יש לי את השגיאה הבאה:
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/content/l/a/d/ladart/html/admin/config.php on line 24

על הביטוי הבא:
PHP קוד:
$name=preg_replace(" ""_"$name); 
הנמצא בפונ'
PHP קוד:
function space($name)
{
$name=preg_replace(" ""_"$name);
return 
$name;

מטרת הפונ' להפוך רווחים ל _
  Reply With Quote