dmccabe Posted July 16, 2008 Share Posted July 16, 2008 In an if statement what does -> mean? e.g: if($post->post_parent) Link to comment https://forums.phpfreaks.com/topic/115117-solved-quick-help-with-if-statement-operator/ Share on other sites More sharing options...
cooldude832 Posted July 16, 2008 Share Posted July 16, 2008 its usually used in OOP to designate something inside an object this case you are saying $post->post_parent which is saying you have some "object" and you want to use the value of that object's post_parent to determine if an if statement should execute. Not very good method odds are u wrote something wrong Link to comment https://forums.phpfreaks.com/topic/115117-solved-quick-help-with-if-statement-operator/#findComment-591992 Share on other sites More sharing options...
dmccabe Posted July 16, 2008 Author Share Posted July 16, 2008 Thanks am trying to make something work on Wordpress so it is in their sidebar code, but asking on the Wordpress forums is like holding a party in a ghost town Link to comment https://forums.phpfreaks.com/topic/115117-solved-quick-help-with-if-statement-operator/#findComment-591993 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.