تأخذ قيمة comment المرسلة من الطلب وننشىء كائن جديد من class السابق ونمرر له قيمة النص ثم نعرض الناتج كالأتي $text = new Text($_POST["comment"]); echo 'Characters: '. $text->characters(); echo '<br>'; echo 'Words: '. $text->words(); echo '<br>'; echo 'Lines: '. $text->lines();