Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

Commit 2699d89

Browse files
committed
增加 php 说明
1 parent 587039e commit 2699d89

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@
2525

2626
![演示](截图/演示_Kotlin.png)
2727

28+
- PHP
29+
30+
对 $ 开头的变量名,直接输入拼音即有提示:
31+
32+
![演示](截图/演示_PHP.png)
33+
2834
- Python
2935

3036
![演示](截图/演示_Python.png)
@@ -50,4 +56,4 @@
5056

5157
## 已知问题
5258

53-
对 PHP 中 $ 打头的标识符[尚不支持](https://github.com/program-in-chinese/vscode_Chinese_Input_Assistant/issues/1)
59+
暂无

供测试/斐波那契.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
<?php
22
//https://github.com/program-in-chinese/overview/blob/master/%E7%A4%BA%E4%BE%8B%E4%BB%A3%E7%A0%81/%E6%96%90%E6%B3%A2%E9%82%A3%E5%A5%91.php
33

4-
$数列[1] = 1;
5-
for($索引 = 2;$索引 <= 16;$索引++)
6-
{
7-
$数列[$索引] = $数列[$索引-1] + $数列[$索引-2];
4+
function 生成数列() {
5+
$数列[1] = 1;
6+
for($索引 = 2;$索引 <= 16;$索引++)
7+
{
8+
$数列[$索引] = $数列[$索引-1] + $数列[$索引-2];
9+
}
10+
echo join(",",$数列);//将数组合并为一个字符串输出
811
}
9-
echo join(",",$数列);//将数组合并为一个字符串输出
12+
生成数列()
1013
?>

截图/演示_PHP.png

53.4 KB
Loading

0 commit comments

Comments
 (0)