don't understand

this is a coding line ----- $do->redirect(“index.php”);

I want to know what this “$do->” meaning…

Hi there,

Thats using a PHP class (Object Oriented PHP). Someone has initalised the class “do”, and created a function “redirect” within that class. When dealing with classes, you access the internal functions by naming the class, using the “->” method and then putting the function.

Hope this helps. To understand it a bit more just google OOP PHP.

Sponsor our Newsletter | Privacy Policy | Terms of Service