What does this php construct mean: $html->redirect(“URL”)?

前端 未结 5 817
名媛妹妹
名媛妹妹 2021-01-19 18:21

I\'ve seen this \"-> \" elsewhere used in php. One of the books I used to learn PHP has this in it, but it is never explained. What does it do, how does it work!

The

5条回答
  •  無奈伤痛
    2021-01-19 19:10

    $html is an object. The redirect function is a method that belongs to this object. I strongly suggest that you read the PHP documentation on classes and objects to explain these concepts.

提交回复
热议问题