لغة PHP — الصفحة ١٩٩

متنوعات eval ("\$str = \"$str\";"); echo $str; // The above example will show: // This is a $string with my $name in it. // This is a cup with my coffee in it. ?> http://localhost/test/p7/new3 - Micr... File Edit View Favorites Tools Help Back x Forward Stop Refresh Address @ http://localhost/test/p7/n Hello world. EVAL EXAMPLE This is a $string with my $name in it. This is a cup with my coffee in it. Done Local intranet الفصل السادس. Home Go Links" المثال التالي قد يكون فى بداية الصفحة لتعريف الزائر بعدد مرات دخوله الصفحة : <?php // Example Counting the number of hits of a single user session_register ("count"); $count++; echo ("Hello, you have seen this page ".$count." times.<p>"); # the <?=SID?> is necessary to preserve the session id # in the case that the user has disabled cookies To continue, <A HREF="nextpage.php?<?=SID?>">click here</A> 199 نتيجة تنفيذ المثال تختلف باختلاف عدد مرات الزيارة :
ص ١٩٩

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