Category Archives: PHP

Master WP in Arabic

In the name of Allah

Constructing a Table

<?php
$days = range(1, 31);
$rows = array_chunk($days, 7);
echo "<table>";
foreach ($rows as $row) {
	echo "<tr>";
	foreach ($row as $value) {
		echo "<td>".$value."</td>";
	}
	echo "</tr>";
}
echo "</table>";
?>
1	2	3	4	5	6	7
8	9	10	11	12	13	14
15	16	17	18	19	20	21
22	23	24	25	26	27	28
29	30	31

PHP v7.0.0 Alpha 2 Released

In the name of Allah

 PHP 7.0.0 comes with new version of the Zend Engine with features such as (incomplete list):

Improved performance: PHP 7 is up to twice as fast as PHP 5.6
Consistent 64-bit support
Many fatal errors are now Exceptions
Removal of old and unsupported SAPIs and extensions
The null coalescing operator (??)
Combined comparison Operator (<=>)
Return Type Declarations
Scalar Type Declarations
Anonymous Classes

Read More

Download

Ten Tips for Developers

In the name of Allah

1) Go OOP
2) Stay Away from Anything Ending With _once()
3) Develop With Error Reporting On
4) Use A Framework If You Need One
5) Use PHP’s Inbuilt Functions
6) Protect Your Database
7) Use POST Not GET
8) Draw Before You Code
9) Understand Your Project
10) Code Code Code

By Marc Plotz

Read More