Tags » PHP 2

Pagination dengan SQL_CALC_FOUND_ROWS

Untuk pagination, umumnya kita menggunakan fungsi COUNT() untuk mendapatkan total record setalah itu menggunakan klausa LIMIT untuk mendapatkan data sesuai page yang diinginkan. 389 more words


Yii 2 PSR Coding Standards

Take Our Poll

I’d like to take a moment and welcome everyone who is finding their way to this blog. We have readers from all over the world. 735 more words

Yii 2

A more verbose var_dump()

Have you ever noticed how when you do a var_dump() that it always goes so far into the tree then displays three dots … ? 94 more words


Project Euler: problem 39 (PHP) – Integer right triangles

This is another Project Euler puzzle I hadn’t tried before.  I’m doing these  as a simple practical exercise for teaching myself PHP, and I’d appreciate any feedback on my code. 435 more words

Project Euler

Project Euler: problem 35 (PHP) - Circular primes

I ignored this Project Euler puzzle first time round I tried doing them, 5-6 years ago, with ColdFusion and Python.  Looking at it again recently I thought I could tackle it with PHP.  406 more words

Project Euler

[PHP] PHP Fatal error can't use method return value in write context

Context :
Development with PHP

Error message :
PHP Fatal error can’t use method return value in write context

Code generated error :

if(empty(preg_match($pattern, $subject))){
  .... 47 more words


What is elephant.io ?

Elephant.io provides a socket.io client fully written in PHP that should be usable everywhere in your project.

It is a light and easy to use library that aims to bring some real-time functionality to a PHP application through socket.io and websockets for actions that could not be done in full javascript, such as: 13 more words

Web Technology