Jump to content

mikemcc

Members
  • Posts

    8
  • Joined

  • Last visited

mikemcc's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. mikemcc

    -> operator

    Is there a good description of the -> operator anywhere or can anyone please explain it. I'm an experienced but amateur PHP programmer and see -> used in examples and libraries but cannot find any documentation of it on the w3Schools site, at php.net or elsewhere. Here's an example: if (!$fh = fopen($this->_outputFile, 'wb+')) { return 'error opening outputfile: '.$this->_outputFile.' for wb+ access!';} Many thanks
  2. mikemcc

    @mysql

    Yes, thescientist, I don't disagree except:1. It's part of the strength of the internet that one can pick up (often perfectly good) code and thereby take perfectly acceptable shortcuts.2. This @ issue could even be mentioned in a tutorial on good (and bad) debugging.
  3. It might help if you could explain why there's sometimes an @ sign before PHP functions. You might want to discourage it, but it would help some people understand it if they came across it in code snippets.Please see the topic:http://w3schools.invisionzone.com/index.ph...mp;#entry181349
  4. mikemcc

    @mysql

    Sure, but have you tried googling @mysql or "@mysql" (as I did before asking the question) ? Google ignores the @ and offers you 91m hits about mysql. Irritatingly, but for obvious misguided reasons, Google increasingly returns the links it wants to return - rather than paying precise attention to the string one enters within quotes. This is probably a different scenario so maybe someone has a way to prevent it from ignoring the @ ? Thanks.
  5. mikemcc

    @mysql

    Many thanks. I now agree that it's bad practice to use the @ but perhaps w3schools could mention this into their tutorials, for people who get code snippets from the internet and then can't understand what the @ is doing.
  6. mikemcc

    @mysql

    Can anyone please tell me why mysql_ functions sometimes have the 'at sign' @ infront of them, for example @mysql_fetch_assoc ?I have searched for this information in the official and other documentation but can't work out how to search for the @ . Thanks.
×
×
  • Create New...