Implicit Type Conversion for PHP Classes?

前端 未结 7 1123
轻奢々
轻奢々 2021-01-25 06:16

Is there a way to tell the php complier that I want a specific implicit conversion from one type to another?

A simple example:

class Integer
{
  public $         


        
7条回答
提交回复
热议问题