当前位置:网站首页>How PHP adds two numbers
How PHP adds two numbers
2022-07-03 21:35:00 【Yisu cloud】
php How to add two numbers
This article “php How to add two numbers ” Most people don't quite understand the knowledge points of the article , So I made up the following summary for you , Detailed content , The steps are clear , It has certain reference value , I hope you can gain something after reading this article , Let's take a look at this article “php How to add two numbers ” Article bar .
php The method of adding two numbers :1、 Use “+” The addition operator , grammar “$num1 + $num2”;2、 Use “+=” Operator , You can assign the variable on the left of the operator plus the value of the expression on the right to the variable on the left , grammar “$num1 += $num2”.
The operating environment of this tutorial :windows7 System 、PHP7.1 edition 、DELL G3 The computer
php Add two numbers
1、 Use “+” The addition operator
“+” Operators are used for addition calculation .
Example :
<?php $a = -100; $b = 70; echo '$a + $b = '.($a + $b); ?>
2、 Use “+=” Operator
“+=” Add equal assignment operator , You can assign the variable on the left of the operator plus the value of the expression on the right to the variable on the left
Example :
<?php header("Content-type:text/html;charset=utf-8"); $a = 100; $b = 70; echo '$a += $b The value of is :'.($a += $b); ?>
That's about “php How to add two numbers ” The content of this article , I believe we all have a certain understanding , I hope the content shared by Xiaobian will be helpful to you , If you want to know more about it , Please pay attention to the Yisu cloud industry information channel .
边栏推荐
- Such as the visual appeal of the live broadcast of NBA Finals, can you still see it like this?
- 大神们,我想发两个广播流1 从mysql加载基础数据,广播出去2 从kafka加载基础数据的变更
- Hcie security Day10: six experiments to understand VRRP and reliability
- Yyds dry inventory hcie security Day12: concept of supplementary package filtering and security policy
- The 12th Blue Bridge Cup
- Etcd 基于Raft的一致性保证
- Teach you how to install aidlux (1 installation)
- MySQL——JDBC
- Baohong industry | good habits that Internet finance needs to develop
- Read the root directory of the folder, write txt and generate random samples
猜你喜欢
Après 90 ans, j'ai démissionné pour démarrer une entreprise et j'ai dit que j'allais détruire la base de données Cloud.
JS three families
Basic preprocessing and data enhancement of image data
Tidb's initial experience of ticdc6.0
[gd32l233c-start] 5. FLASH read / write - use internal flash to store data
MySQL——JDBC
Software testing skills, JMeter stress testing tutorial, obtaining post request data in x-www-form-urlencoded format (24)
Décompiler et modifier un exe ou une DLL non source en utilisant dnspy
MySQL——数据库备份
常用sql集合
随机推荐
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
Set, weakset, map, weakmap in ES6
Advanced collaboration: coroutinecontext
gslb(global server load balance)技术的一点理解
MySQL——索引
No more! Technical team members resign collectively
浅析 Ref-NeRF
Advanced technology management - how to examine candidates in the interview and increase the entry probability
treevalue——Master Nested Data Like Tensor
MySQL - index
What if the Flink SQL client exits and the table is emptied?
Mysql - - Index
Mysql database ----- common commands of database (based on database)
Nacos common configuration
Custom view incomplete to be continued
XAI+网络安全?布兰登大学等最新《可解释人工智能在网络安全应用》综述,33页pdf阐述其现状、挑战、开放问题和未来方向
Visiontransformer (I) -- embedded patched and word embedded
MySQL——索引
Notes on MySQL related knowledge points (startup, index)
抓包整理外篇——————autoResponder、composer 、statistics [ 三]