我需要从函数返回多个值,因此我将它们添加到数组并返回数组.
<?
function data(){
$a = "abc";
$b = "def";
$c = "ghi";
return array($a, $b, $c);
}
?>
Run Code Online (Sandbox Code Playgroud)
我怎么能接受的价值观$a,$b,$c通过调用上述功能?
Can someone please tell me How can I install XDebug and integrate it with my existing XAMPP and Eclipse PDT. Thanks.
如何使用mysqli prepare语句获取最后一条记录的insert_id,例如以下?
$stmt = $this->mysqli->prepare("INSERT INTO test (name) values (?)")
$stmt->bind_param('s', $name);
$stmt->execute();
Run Code Online (Sandbox Code Playgroud) 我有以下数组,我想检索name,comment和each of the tags(在数据库中插入.如何检索数组值.另外,我只能过滤大于3个字符的标签值,并且只包含一个-Z0-9值.非常感谢你.
Array
(
[folder] => /test
[name] => ajay
[comment] => hello world.. test comment
[item] => Array
(
[tags] => Array
(
[0] => javascript
[1] => coldfusion
)
)
)
Run Code Online (Sandbox Code Playgroud)