How to cast property of stdClass to a certain type in PHP?

前端 未结 0 460
感动是毒
感动是毒 2021-01-18 01:06

Imagine having a StdClass like this:

$foo = new stdClass();

$foo->bar = "baz";
$foo->baz = "1";

Now h

相关标签:
回答
  • 消灭零回复
提交回复
热议问题