Skip to main content
Gordon's user avatar
Gordon's user avatar
Gordon's user avatar
Gordon
Development Program Director, IBM Observability by Instana.
  • Member for 14 years, 8 months
  • Last seen this week
2012 votes
Accepted

How do you parse and process HTML/XML in PHP?

1800 votes
Accepted

Convert a PHP object to an associative array

669 votes
Accepted

I have 2 dates in PHP, how can I run a foreach loop to go through all of those days?

502 votes
Accepted

What does yield mean in PHP?

467 votes
Accepted

Force SSL/https using .htaccess and mod_rewrite

452 votes

Difference between require, include, require_once and include_once?

410 votes
Accepted

Best way to check if a URL is valid

359 votes
Accepted

Print array to a file

355 votes
Accepted

How to loop through PHP object with dynamic keys

324 votes

Is there a use-case for singletons with database access in PHP?

316 votes
Accepted

Merging two arrays with the "+" (array union operator) How does it work?

305 votes

Reference - What does this error mean in PHP?

271 votes
Accepted

Finding the PHP File (at run time) where a Class was Defined

267 votes
Accepted

Add number of days to a date

249 votes
Accepted

Is there a PHP Sandbox, something like JSFiddle is to JS?

247 votes
Accepted

How to delete a file via PHP?

226 votes

Traits in PHP – any real world examples/best practices?

224 votes

How to get file name without file extension?

219 votes
Accepted

Grabbing the href attribute of an A element

201 votes
Accepted

What is a class in PHP?

197 votes
Accepted

Error message Strict standards: Non-static method should not be called statically in php

192 votes

How to sort files by date in PHP

188 votes
Accepted

PHP __get and __set magic methods

182 votes
Accepted

Can I include code into a PHP class?

177 votes
Accepted

DOMDocument::loadHTML error

166 votes
Accepted

PHP global in functions

149 votes
Accepted

Python SimpleHTTPServer with PHP

149 votes

What is the difference between a fluent interface and the Builder pattern?

143 votes
Accepted

Timezone conversion in php

143 votes
Accepted

How do I immediately execute an anonymous function in PHP?

1
2 3 4 5
90