$data ['ToUserName'] == 'gh_3c884a361561' is true, take $data ['ToUserName'] = 'gh_3c884a361561' as the result, note the "=", and then discard $this->init_follow ( $data )
$data ['ToUserName'] == 'gh_3c884a361561' is false, discard $data ['ToUserName']== 'gh_3c884a361561', and then judge $this->init_follow ( $data ), if this is true, then Get the result returned by the init_follow() function
$data ['ToUserName'] == 'gh_3c884a361561' is true, take $data ['ToUserName'] = 'gh_3c884a361561' as the result, note the "=", and then discard $this->init_follow ( $data )
$data ['ToUserName'] == 'gh_3c884a361561' is false, discard $data ['ToUserName']== 'gh_3c884a361561', and then judge $this->init_follow ( $data ), if this is true, then Get the result returned by the init_follow() function
||
具有短路性。||
If the previous statement is true, then the following statement will not be executed.Short circuit AND and logical AND
Simplified writing method, compared to traditional if, only one line of code is needed