הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   [PHP] לדעתכם יש שגיאה בקוד הזה? (https://hosts.co.il/forums/showthread.php?t=26476)

-roee- 15-07-06 20:13

[PHP] לדעתכם יש שגיאה בקוד הזה?
 
להלן הקוד:
PHP קוד:

        $find = array(':D',':wink:',':twisted:',':o',':)',':(',':roll:',':oops:',':P',':?:',':x',':lol:',':idea:',':!:',':evil:',':shock:',':cry:',':cool:',':?',':arrow:');
        
$replace = array('very_happy','wink','twisted','surprised','smile','sad','rolleyes','redface','razz','question','mad','lol','idea','exclaim','evil','eek','cry','cool','confused','arrow');
        
$c_comment str_replace($find,"<img src=\"images/emoticons/icon_".$replace.".gif\" border=\"0\" />,$c_comment); 

הוא אומר לי unexpected T_STRING

Tomer 15-07-06 20:52

PHP קוד:

$c_comment str_replace($find,"<img src=\"images/emoticons/icon_".$replace.".gif\" border=\"0\" />",$c_comment); 

תנסה..

ואגב, זה די ברור שיש שגיאה בקוד אם המנוע של PHP מחזיר לך שגיאה.. קצת לחשוב בנאדם.

BlueNosE 15-07-06 21:22

הHIGHLIGHT מראה לך שיש שגיאה, חסר "" איפשהו, נדמה לי שתומר הראה לך..


כל הזמנים הם GMT +2. הזמן כעת הוא 23:12.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ