gudfry Posted July 30, 2008 Share Posted July 30, 2008 hi all; what is wrong with in this code, please correct it thanks <?php $value=""; $city=""; echo $result=city::getDisplayName($value->id==$city); ?> Link to comment https://forums.phpfreaks.com/topic/117314-problem-with-none-object-property/ Share on other sites More sharing options...
trq Posted July 30, 2008 Share Posted July 30, 2008 A little more context would help. Link to comment https://forums.phpfreaks.com/topic/117314-problem-with-none-object-property/#findComment-603448 Share on other sites More sharing options...
matthewhaworth Posted July 30, 2008 Share Posted July 30, 2008 You've defined $city as a string and you're trying to call a static method from it. Perhaps you need to call $city something else if it's the same name as the 'city' object? Link to comment https://forums.phpfreaks.com/topic/117314-problem-with-none-object-property/#findComment-603495 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.