What are the uses of -> and => in PHP.
I have been trying the same since long time.Please do someone answer with examples.
$data['student_last_name'] = $this->input->post('student_lastname');
What are the uses of -> and => in PHP.
I have been trying the same since long time.Please do someone answer with examples.
$data['student_last_name'] = $this->input->post('student_lastname');
 
    
     
    
    -> is used to access object property and => is used to assign value to array key.
Example:
$name = $person->name;
$newArray = array(
    "name" => "John"
)
