Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
2,787
reputation
2
12
17

IMSoP

Professional PHP developer with a tendency to defend that language where others just throw their hands up - although there certainly are things it would be good to throw away and start again! Similarly, I'm a big fan of PostgreSQL, but not of routinely bashing MySQL except in the specific cases where it deserves it.

I tend to downvote answers that give a literal code solution to the problem posed with no accompanying explanation, as they miss the opportunity to teach people how to solve the problem themselves next time.

If I'm arguing with you after 23:00 UTC, please tell me to go to bed!

I spend a lot of time explaining the PHP SimpleXML API, and defending against misconceptions and misunderstandings; here are a top 3:

  • Never print_r() or var_dump() SimpleXML data, or you will be more confused than when you started. I have written some debug functions to use instead.
  • There is nothing wrong with CDATA sections in SimpleXML. Just always cast to string.
  • Namespaces (AKA "tags with colons in them") are really easy - just use the ->children() method.
6
answers
1
question
~106k
people reached
  • Member for 3 years, 10 months
  • 63 profile views
  • Last seen 15 hours ago

Top Tags (19)

Score 156
Posts 1
Posts % 14
Score 145
Posts 2
Score 110
Posts 2
Score 110
Posts 1
Score 110
Posts 1
Score 43
Posts 1

Top Posts (7) All Questions Answers | Votes Newest

Badges (31)

Gold

2

Rarest

Silver

12

Rarest

Bronze

17

Rarest