分解变量

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

问题描述

我想知道如何分解变量。我目前正在通过变量$ 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

推荐答案




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

08-03 22:02
查看更多