لغة PHP — الصفحة ١٣٤

الفصل الرابع $c = sprintf ("%s <BR>\n", gettype (Welcome)); Echo "Type of variable is : $c "; ?> 6 <? http://localhost/test/myprog/p081 - Micro... File Edit View Favorites Tools Help x Back Forvard Address http://localhost/test/myprog/p0] Type of variable is : integer Type of variable is : double Type of variable is: string Done Local intranet الدوال Functions تستخدم دالة تحويل متغير إلى عدد صحيح Intval لتحويل متغير إلى عدد $v3= "89.5 KGM"; $v4 = intval ("562.53mť) ; $v5= intval ($v3) ; Print $v4; Print "<BR>"; Print $v5; ?> مثال : ١٣٤
ص ١٣٤

النص مستخرج آليًّا من صور الكتاب، وقد يقع فيه خطأ.