play with php

WBOY
Release: 2016-07-29 09:07:30
Original
1217 people have browsed it

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 supportsoop

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.

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!