ציטוט:
נכתב במקור על ידי elbaz.maor
PHP קוד:
$your_text = 'put here your text'; $your_text = explode(" ", $your_text); $number_of_words = 12; echo implode( " " , array_slice($your_text,0,$number_of_words) );
ועוד משהו עדיף לך להשתמש בspliti
PHP קוד:
$string = "put here your text"; $number_of_words = 12; $chunks = spliti (" ", $string, $number_of_words); echo implode( " " , $chunks );
|
חח אני טיפש

זה מחזיר לי את אותו המשפט, ואני לא יודע איך להמשיך מכאן :|
אשמח אם תוכל להסביר לי מה המשמעות של המספר 12 בקוד?