# php24 **Repository Path**: webrx/php24 ## Basic Information - **Project Name**: php24 - **Description**: php 8.3.x 快速上手教程课堂案例代码(2024版) - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-03-13 - **Last Updated**: 2024-03-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## ch01 PHP概述 ## ch02 基本语法 ## ch03 流程控制 ```php //猜数游戏 $num = mt_rand(1, 100); $n = 0; do { ++$n; echo "请输入数字[1-100]:"; $temp = fgets(STDIN); if ($temp > $num) { printf("%d、太大了\n", $n); } elseif ($temp < $num) { printf("%d、太小了\n", $n); } else { printf("%d、恭喜,猜对了,你的游戏:%d分。\n", $n, (110 - $n * 10)); break; } } while (true); ``` ## ch04 函数 function ## ch05 数组 array ## ch06 面向对象oop ## ch07 字符串与正则表达式