分解变量 [英] break apart a variable

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

问题描述

我想知道如何分解变量。我目前正在通过变量$ id-hours传递
,我想将其分解。我会

喜欢分解到类似的东西:


$ eid = id(id为$ id-hours的一部分)

$ ehour =小时($ id-hours的小时部分)


这可能吗?我是编程的新手,只是试图通过它来获得所有。感谢您提供的任何帮助。


A

I would like to know how I can break apart a variable. I''m currently
passing the variable $id-hours and I would like to break it down. I would
like to break down to something similar to:

$eid = id (id part of $id-hours)
$ehour = hours (hours part of $id-hours)

Is this possible? I''m new to programming and just trying to get thru it
all. Thanks for any help that you may be able to provide.

A

推荐答案

id-hours and我想打破它。我想

喜欢分解为类似的东西:

id-hours and I would like to break it down. I would
like to break down to something similar to:


eid = id(id
eid = id (id part of

<的一部分br />


id-hours)
id-hours)


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

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