变量和值 [英] variables and values

查看:57
本文介绍了变量和值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我对php很新,我对某些东西感到困惑。

这对你们其他人来说都很简单但是它不适用于

me。


i有一个名为$ a的变量它的值为10.


i希望将此值传递给一个新变量并将其增加10,这是正确的吗?

这是正确的方法吗? />

$ a = $ b;

$ b + 10;


感谢不笑:o)

hi all, i''m very new to php and i''m a little confused about something.
this will be dead simple to the rest of you but it doesn''t work for
me.

i have a variable called "$a" which has a value of 10.

i want to pass this value to a new variable and increase it by 10, is
this the right way?

$a=$b;
$b + 10;

thanks for not laughing :o)

推荐答案

a它的值为10.


i希望将此值传递给一个新变量并将其增加10,这是正确的吗?

这是正确的方法吗? />
a" which has a value of 10.

i want to pass this value to a new variable and increase it by 10, is
this the right way?


a =


b;
b;


这篇关于变量和值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆