Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [php]

This challenge is related to the PHP language. Note that challenges that require the answers to be in a specific language are generally discouraged.

Filter by
Sorted by
Tagged with
40 votes
40 answers

Tips for golfing in PHP

What general tips do you have for golfing in PHP? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to PHP (e.g. "remove comments" is not ...
JiminP's user avatar
  • 3,452
8 votes
3 answers

PHP golfing tips: Reading/writing files and the CLI

I have been participating in a number of PHP code golf challenges recently and some of the techniques that are used to read data from a file such as fopen() and <...
Dan Prince's user avatar
  • 1,467
-4 votes
1 answer

Shortest way to generate UUID's version 3,4 and 5 in php

I have this function to generate UUID's: ...
Ismael Miguel's user avatar