fix(guide): simplify directory structure

This commit is contained in:
Mrugesh Mohapatra
2018-10-16 21:26:13 +05:30
parent f989c28c52
commit da0df12ab7
35752 changed files with 0 additions and 317652 deletions

View File

@ -0,0 +1,11 @@
---
title: Cookies
localeTitle: 曲奇饼
---
## 饼干
这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/php/functions/cookies/index.md) 。
[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。
#### 更多信息:

View File

@ -0,0 +1,11 @@
---
title: Date
localeTitle: 日期
---
## 日期
这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/php/functions/date/index.md) 。
[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。
#### 更多信息:

View File

@ -0,0 +1,22 @@
---
title: Die and Exit
localeTitle: 死亡和退出
---
## 死亡和退出
`die()``exit()`函数是相同的。它们每个都带有一个包含错误消息的参数(一个字符串)。在运行时,它们输出消息并立即停止执行脚本。
```PHP
<?php
die('Die() function was run');
```
```PHP
<?php
exit('Exit() function was run');
```
#### 更多信息:
* [php.net die手册](https://secure.php.net/manual/en/function.die.php)
* [php.net exit手册](https://secure.php.net/manual/en/function.exit.php)

View File

@ -0,0 +1,46 @@
---
title: Echo and Print
localeTitle: 回声和打印
---
## 回声和打印
echo和print函数提供了一种将变量或参数的值写出到屏幕的方法。
### 回声
`echo()`函数将变量或参数的值写出到屏幕。
```PHP
<?php
echo "freeCodeCamp";
```
注意打开PHP标记和回显的简便方法是<=
```
<?= "freeCodeCamp"; ?>
```
### 打印
`print()`函数输出屏幕变量或参数的值。
```PHP
<?php
print "freeCodeCamp";
```
### 的print\_r
`print_r()`函数将任何变量(例如数组)或参数的值写出到屏幕上,这与回声或打印功能相比更为有限。
```PHP
<?php
$freecodecamp = "freeCodeCamp";
print_r($freecodecamp);
```
#### 更多信息:
* [php.net echo手册](https://secure.php.net/manual/en/function.echo.php)
* [php.net print手册](https://secure.php.net/manual/en/function.print.php)
* [php.net print\_r手册](https://secure.php.net/manual/en/function.print-r.php)

View File

@ -0,0 +1,11 @@
---
title: File Reading
localeTitle: 文件阅读
---
## 文件阅读
这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/php/functions/files/reading/index.md) 。
[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。
#### 更多信息:

View File

@ -0,0 +1,11 @@
---
title: File Uploading
localeTitle: 文件上传
---
## 文件上传
这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/php/functions/files/uploading/index.md) 。
[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。
#### 更多信息:

View File

@ -0,0 +1,11 @@
---
title: File Writing
localeTitle: 文件写作
---
## 文件写作
这是一个存根。 [帮助我们的社区扩展它](https://github.com/freecodecamp/guides/tree/master/src/pages/php/functions/files/writing/index.md) 。
[这种快速风格指南有助于确保您的拉取请求被接受](https://github.com/freecodecamp/guides/blob/master/README.md) 。
#### 更多信息:

View File

@ -0,0 +1,17 @@
---
title: Files
localeTitle: 档
---
## 档
PHP提供了几种处理文件的功能。这些函数允许开发人员启用用户文件上传php用于读取和使用文件中的数据最后用于php将数据写入文件。
#### 更多信息:
* [php.net readfile手册](https://secure.php.net/manual/en/function.readfile.php)
* [php.net fopen手册](https://secure.php.net/manual/en/function.fopen.php)
* [php.net fread手册](https://secure.php.net/manual/en/function.fread.php)
* [php.net fclose手册](https://secure.php.net/manual/en/function.fclose.php)
* [php.net fgets手册](https://secure.php.net/manual/en/function.fgets.php)
* [php.net feof手册](https://secure.php.net/manual/en/function.feof.php)
* [php.net fgetc手册](https://secure.php.net/manual/en/function.fgetc.php)

View File

@ -0,0 +1,45 @@
---
title: Functions
localeTitle: 功能
---
## PHP函数简介
函数是可以在程序中重复使用的语句块。
### 简单的功能+通话
```php
function say_hello() {
return "Hello!";
}
echo say_hello();
```
### 简单功能+参数+调用
```php
function say_hello($friend) {
return "Hello " . $friend . "!";
}
echo say_hello('Tommy');
```
### strtoupper - 让所有的Chars变得更大和更大
```php
function makeItBIG($a_lot_of_names) {
foreach($a_lot_of_names as $the_simpsons) {
$BIG[] = strtoupper($the_simpsons);
}
return $BIG;
}
$a_lot_of_names = ['Homer', 'Marge', 'Bart', 'Maggy', 'Lisa'];
var_dump(makeItBIG($a_lot_of_names));
```
#### 更多信息:
* [php.net用户定义的函数手册](https://secure.php.net/manual/en/functions.user-defined.php)

View File

@ -0,0 +1,24 @@
---
title: Time
localeTitle: 时间
---
## 时间
`time()`函数返回当前的unix时间戳自Unix Epoch以来的秒数 - 1970年1月1日00:00:00 GMT
### 例
```php
<?php
echo time();
```
**输出:**
```text
1511732226
```
#### 更多信息:
* [php.net time手册](https://secure.php.net/manual/en/function.time.php)