Snaps in php

php

web programming language

php

php - datetime current date for save in mysql table...

php mysql date

For example. Product can have many tags. Product tags can be found with this active record query:...

yii2 php frameworks activerecord

Making array from table referenced by foreign key for view made from table having referenced id....

php framework yii2 view foreign-key

Creating new module using ZendSkeletonModule, git, terminal in ubuntu....

zend-framework2 module creation ubuntu

Count or select records with orm using where in array....

kohana-3.3 orm count select

php

Finding first and last item of an array using end and reset functions...

php array find

php

Php connection class returning instance. Using singleton pattern....

php mysql pdo singleton connection

php

Simple hello world program in PHP...

echo

Yii2 check if record exists with where condition...

yii2 php

php

Clarification will help for people who aren't sure. You first create a variable to store your information, then call the php date function so that it is stored in the variable. Add format parameters so the date is displayed the way you'd like i...

php mysql date

php

Setting maximum execution time in php. Parameter is a number of seconds. Zero is unlimited time for script. Put this at the beginning of funntion, action or script to set maximum execution time...

php limit execution time maximum

Display diffrent content for logged users...

wordpress

php

phopinfo();...

phpinfo

Gettin logged user in yii2 framework...

yii2 php logged user get

Getting parameter from request...

yii2 parameter request get

php

This code will get array of particular key from another array with array_map function....

php array array-map

php

Checking if variable can be parsed into integer using is_int() and ctype_digit(). After returning true I thing is pretty shure that variable can be cast to integer....

php parse variable

Products can have many tags. If model has getter for getting related tags, tags objects can be read with theese getter. Model also has to have tags property declared. Getter and property can be generated with gee with model generation, or can be...

yii2 php frameworks activerecord

php

Sort array by key with ascending order. Using ksort function....

php array sort ksort function

Code for select input made from table. Dropdown not using $form->model...

php framework yii2 view drop-down