play with php

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-29 09:07:301302browse

ok, let’s play around with some things recently
First play around with php, this article will be updated at any time
This article is written by a developer who has programming experience in other high-level languages.
PHP supports functional programming, that is, function, and also supports oop

Some similarities and differences

  • Use a dot (.) when replacing characters with connections
  • There is no such convenient thing as a list, only an array
  • Constructor uses __construct
  • Variables do not need to be declared, just use them, but they must start with $
  • When using object properties or functions, use $obj-> variable name/function name, but please note ,$ appears once is enough, eg:$obj->getAll();

Some practical things

  • var_dump(variable) function can display the storage structure of variables, when you don’t When you know what a thing is, just use it to debug it

The above introduces play with php, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn