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

前端 未结 5 780
名媛妹妹
名媛妹妹 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 18:50

    $html is the variable, html is the class.

    $html = new html;
    

    puts a new object with class html in the variable $html. Otherwise, that's correct.

提交回复
热议问题