Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Programming \ PHP interview questions of design patterns     - Convert MySQL date string to a NULL value exception handling (Database)

- ISO image to use offline upgrade Ubuntu (Linux)

- Deep understanding of C # generics (Programming)

- Why you should choose Python Programming (Programming)

- A custom implementation of the Android sidebar (Programming)

- MySQL separation Amoeba achieve literacy (Database)

- Getting Started with Linux: Learn how to upgrade Docker in Ubuntu (Server)

- Ubuntu buffalo wzr-hp-300nh brush DD-WRT router system (Linux)

- SQL statement to repair SQL Server database (Database)

- MySQL common functions summary (Database)

- How to install OpenOffice Ubuntu or Linux Mint (Linux)

- How x2go set up Remote Desktop on Linux (Linux)

- Simple to use Linux GPG (Linux)

- Use a soft Raid play multiple SSD hard drive performance and enhance data security (Linux)

- Linux, C programming language library file handling and preparation of Makefile (Programming)

- Zabbix monitoring platform to extract a single server graphical Python implementation of concurrent (Server)

- How to use Android Studio development / debugging Android source code (Linux)

- How to run in support UDp Docker container JBoss data virtualization GA (Server)

- Linux AS4 VPN server in conjunction with a firewall perfect (Linux)

- JavaScript: understanding regular expressions (Programming)

  PHP interview questions of design patterns
  Add Date : 2018-11-21      
  A design pattern is a technical interview question will inevitably be asked, in particular, will let you design patterns illustrate various usage scenarios.

Use of design patterns can reduce our workload, optimize our code.

Design patterns very much, here singleton, factory mode, combined mode, the policy mode 4 modes

/ **
  * /
class Config
     static private $ _instance = NULL;
     private $ _settings = array ();
     private function __construct () {}
     private function __clone () {};

     static function getInstance ()
         if (self :: $ _ intance == NULL) {
             self :: $ _ intance = new Config ();
         return self: $ _ intance;

     public function set ($ index, $ value)
         $ This -> _ setting [$ index] = $ value;

     public function get ($ index)
         return $ this -> _ settings [$ index];
- How to install and use the Snort in Ubuntu 15.04 (Linux)
- How to install PlayOnLinux 4.2.5 under Ubuntu 14.04 / 12.04 (Linux)
- 10 useful Linux command line tips (Linux)
- Nginx + ownCloud + PHP + MySQL to build personal private cloud under CentOS7 (Server)
- Linux Getting Started tutorial: Experience QEMU virtual machine articles (Linux)
- Ubuntu users install the Download Manager software Xdman 5.0 (Linux)
- Open Ubuntu system updates (Linux)
- Intel Graphics Installer installation on Ubuntu 15.10 (Linux)
- Using FTPClient to upload and download files in Java (Programming)
- MySQL and MariaDB traditional master-slave cluster configuration (Database)
- Cobbler batch install Ubuntu / CentOS system (Linux)
- How to fix Not Enough Free Disk Space On / boot on Ubuntu (Linux)
- To achieve Linux Security (Linux)
- Python object-oriented programming (Programming)
- High-performance open-source http accelerator Varnish introduce (Server)
- Java Learning: elegant string (Programming)
- A brief introduction to some important Docker commands (Server)
- Java, extends and implements Usage (Programming)
- Android Scroller call mechanism and the relationship of computeScroll (Programming)
- How to statistical data of various size Redis (Database)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.