PHP MySQL


Planet PHP

Tips4PHP:

LATEST PHP-MySQL ARTICLES,TUTORIALS


PHP 7 - New features

Apr 11, 2017   By http://php.net/manual/en/migration70.new-features.php

Scalar type declarations

Scalar type declarations come in two flavours: coercive (default) and strict. The following types for parameters can now be enforced (either coercively or strictly): strings (string), integers (int), floating-point numbers (float), and booleans (bool). They augment the other types introduced in PHP 5: class names, interfaces, array and callable.

// Coercive mode
function sumOfInts(int ...$ints)
{
    return 
array_sum($ints);
}

var_dump(sumOfInts(2'3'4.1));
Full Detail

PHP MySQL Lectures Notes

Oct 05, 2015   By mogmachine

01. Introduction To PHP

The fist lecture of the class, discussions on what makes a dynamic site different to a static site, and then going on to discuss PHP & MySQL definitions with a look and explanation of the 3 tier application system.

01. Introduction To PHP – Download the PDF

01. Introduction To PHP – Download the IPOD VIDEO

Full Detail

9 USEFUL PHP FUNCTIONS AND FEATURES YOU NEED TO KNOW

Sep 23, 2015   By Burak Guzel

You may already know that PHP allows you to define functions with optional arguments. But there is also a method for allowing completely arbitrary number of function arguments.

First, here is an example with just optional arguments:

 
  1. // function with 2 optional arguments  
  2. function foo($arg1 = '', $arg2 = '') {  
  3.   
  4.     echo "arg1: $arg1n";  
  5.     echo "arg2: $arg2n";  
  6.   
  7. }  
  8.   
  9. foo('hello','world');  
  10. /* s: 
  11. arg1: hello 
  12. arg2: world 
Full Detail

TOP 20+ MYSQL BEST PRACTICES

Sep 22, 2015   By Burak Guzel

<p>Most MySQL servers have query caching enabled. It&rsquo;s one of the most effective methods of improving performance, that is quietly handled by the database engine. When the same query is executed multiple times, the result is fetched from the cache, which is quite fast.</p>
<p>The main problem is, it is so easy and hidden from the programmer, most of us tend to ignore it. Some things we do can actually prevent the query cache from performing its task.</p>

Full Detail
Top