common Posted May 28, 2010 Share Posted May 28, 2010 Hi all I have the line of code which forms part of creating zip files, but I just want to know what some of the characters mean: 1.) -> 2.) :: can some one help me pls! if($zip->open($destination,$overwrite ? ZIPARCHIVE::OVERWRITE : ZIPARCHIVE::CREATE) !== true) Thanks Link to comment https://forums.phpfreaks.com/topic/203207-special-caracters-in-if-statement/ Share on other sites More sharing options...
GetPutDelete Posted May 28, 2010 Share Posted May 28, 2010 Ooh, welcome to Object Orientated Programming, I'd suggest this tutorial (http://www.killerphp.com/tutorials/object-oriented-php/) It will explain everything you need to know about the scope resolution operators ( -> ) and ( :: ) Link to comment https://forums.phpfreaks.com/topic/203207-special-caracters-in-if-statement/#findComment-1064706 Share on other sites More sharing options...
rwwd Posted May 28, 2010 Share Posted May 28, 2010 -> is pointing to the class instance name and :: is virtually the same thing, though the link provided will more than likely answer your question. As getputdelete says, welcome to OOP, once you get your head around it, it's quite interesting. Have fun! Cheers, Rw Link to comment https://forums.phpfreaks.com/topic/203207-special-caracters-in-if-statement/#findComment-1064712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.