Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
2 answers
2k views

Simple implementation of LRU caching in PHP

This is my implementation of LRU caching in PHP. It works fine when I tested as. What are the things that I miss or need attention? ...
Shobi's user avatar
  • 121
1 vote
3 answers
105 views

PHP function to extract numbers from the list whose squares are exceed some threshold

This is my naive approach: ...
DevMed's user avatar
  • 143
1 vote
1 answer
598 views

Recode algorithm for merged cells on HTML table

Is there any way to improve this algorithm maybe making it so faster avoid using foreach? Maybe with a recursion? The output of my algorithm is a table with 3 merged columns, each row will have its ...
user2570870's user avatar
7 votes
1 answer
87 views

Merging lines of an array

I've got an array like this, which is a result from a Google analytics request. I asked for the amount of visits for the last three months. ...
Jaybe's user avatar
  • 171