php鏁扮粍闀垮害鎬庝箞鑾峰彇
瑕佽幏鍙?PHP 鏁扮粍鐨勯暱搴︼紝鍙互浣跨敤 count() 鍑芥暟銆備互涓嬫槸绀轰緥浠g爜锛?br/>
```php
$array = [1, 2, 3, 4, 5];
$length = count($array);
echo "鏁扮粍鐨勯暱搴︿负锛?" . $length;
```
杈撳嚭缁撴灉涓猴細
```
鏁扮粍鐨勯暱搴︿负锛?5
```
相关问答
瑕佽幏鍙?PHP 鏁扮粍鐨勯暱搴︼紝鍙互浣跨敤 count() 鍑芥暟銆備互涓嬫槸绀轰緥浠g爜锛?br/>
```php
$array = [1, 2, 3, 4, 5];
$length = count($array);
echo "鏁扮粍鐨勯暱搴︿负锛?" . $length;
```
杈撳嚭缁撴灉涓猴細
```
鏁扮粍鐨勯暱搴︿负锛?5
```
相关问答
扫码添加客服微信