Today I’ve taken it to the next level... First write one: (adding numbers)
$a = "10"; //"Connect" the right side to the left side
$a += "2"; //"Add" the right side to the left side
echo $a."
n"; //The result here is 12, which probably means that $a is equal to 10, and then add 2 to the left (which is $a), so it is 12.
?>
I think PHP writing pays great attention to the concept of rows. No matter what $a represents, it probably means right to left. "Connect to" or "Add to" or "Reduction to" etc.,! is not just the addition of numbers. There are other ways.
Write another: (right connection to left content)
$b = "Bad Wolf";
$b .= "Good guy!";
$b .= "Good guy!";
echo $b."Haha!n"; //Display the final content!
?>
Why are the results displayed like this? If you listen carefully every time, you will say in the previous paragraph: The running method of the program is from top to bottom, from right to left.
Write another one: (for division)
$a = "65896255618562314793123219"; //Complex calculation here, it turns out that php handles it here easily!
$a /= "465342233234234"; //Multiply these two numbers!
echo $a."←This is the result! 65896255618562314793123219 Except for 465342233234234, wow ordinary people are not as fast as me! Haha@! N "
? & Gt;
Get results 141608156132, the speed is really fast, haha .... ..
Continue to the next big step:
1. Bit operation (this is rarely used)
& stands for and (and)
| stands for or (or)
^ represents mutual exclusion (Xor)
>> Shift right
~ Take the auxiliary number of 1
2. Logical operations (conditions, etc.)
> means greater than
>= greater than or equal to
== equal to (general checks such as the user's login is not equal to the condition)
!= is not equal to
&& and and (and)
|| or or (or)
xor mutually exclusive (Xor)
! Not (Not)
Other symbols
3. Other operations
$ variables (used many times)
& indicators of variables (added before variables)
@ do not display error messages (added before functions)
Examples
@include("dbx.txt"); / /If dbx.txt does not exist, an error will be reported, but it will not be displayed after adding @!
echo "
n";
?>
-> The method or attribute of the object
=> The element value of the array
?: Three far operators
Just remember the above, (But it’s not that easy to remember, haha!)
The higher-level ones are introduced below, which are also the more commonly used and key ones when writing programs!
1. Single-line if (judgment)
if. ..else...
If...what, what...what will be the result...responsible...how...
If...you are fat...you are a piglet... Otherwise... you are a skinny monkey.
if(conditon) { statment1} true
else {statment2} false false
Example:
$a = 4.998;
if($a > 5) //No semicolon is needed here, pay attention!
{
echo "Yes! a > 5n";
}
else // No semicolon is needed here, pay attention!
http://www.bkjia.com/PHPjc/319111.html
www.bkjia.com

技嘉的主板怎么设置键盘开机首先,要支持键盘开机,一定是PS2键盘!!设置步骤如下:第一步:开机按Del或者F2进入bios,到bios的Advanced(高级)模式普通主板默认进入主板的EZ(简易)模式,需要按F7切换到高级模式,ROG系列主板默认进入bios的高级模式(我们用简体中文来示范)第二步:选择到——【高级】——【高级电源管理(APM)】第三步:找到选项【由PS2键盘唤醒】第四步:这个选项默认是Disabled(关闭)的,下拉之后可以看到三种不同的设置选择,分别是按【空格键】开机、按组

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

1.处理器在选择电脑配置时,处理器是至关重要的组件之一。对于玩CS这样的游戏来说,处理器的性能直接影响游戏的流畅度和反应速度。推荐选择IntelCorei5或i7系列的处理器,因为它们具有强大的多核处理能力和高频率,可以轻松应对CS的高要求。2.显卡显卡是游戏性能的重要因素之一。对于射击游戏如CS而言,显卡的性能直接影响游戏画面的清晰度和流畅度。建议选择NVIDIAGeForceGTX系列或AMDRadeonRX系列的显卡,它们具备出色的图形处理能力和高帧率输出,能够提供更好的游戏体验3.内存电

主板上SPDIFOUT连接线序最近我遇到了一个问题,就是关于电线的接线顺序。我上网查了一下,有些资料说1、2、4对应的是out、+5V、接地;而另一些资料则说1、2、4对应的是out、接地、+5V。最好的办法是查看你的主板说明书,如果找不到说明书,你可以使用万用表进行测量。首先找到接地,然后就可以确定其他的接线顺序了。主板vdg怎么接线连接主板的VDG接线时,您需要将VGA连接线的一端插入显示器的VGA接口,另一端插入电脑的显卡VGA接口。请注意,不要将其插入主板的VGA接口。完成连接后,您可以

广联达软件是一家专注于建筑信息化领域的软件公司,其产品被广泛应用于建筑设计、施工、运营等各个环节。由于广联达软件功能复杂、数据量大,对电脑的配置要求较高。本文将从多个方面详细阐述广联达软件的电脑配置推荐,以帮助读者选择适合的电脑配置处理器广联达软件在进行建筑设计、模拟等操作时,需要进行大量的数据计算和处理,因此对处理器的要求较高。推荐选择多核心、高主频的处理器,如英特尔i7系列或AMDRyzen系列。这些处理器具有较强的计算能力和多线程处理能力,能够更好地满足广联达软件的需求。内存内存是影响计算

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

在php中,可以使用substr()函数来读取字符串后几个字符,只需要将该函数的第二个参数设置为负值,第三个参数省略即可;语法为“substr(字符串,-n)”,表示读取从字符串结尾处向前数第n个字符开始,直到字符串结尾的全部字符。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version
Useful JavaScript development tools

SublimeText3 Linux new version
SublimeText3 Linux latest version

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.
