Basic php learning notes: php learning notes
I have been studying php for more than a year, and I have accumulated a lot of notes. I 'd like to write an article.
Php Basics
PHPBasic command for output text:echoAndprint.
Differences between echo and
Differences among public, protected, and private in C ++: protectedprivate
1. Access scope of private, public, and protected:
Private: It can only be accessed by functions in the class and their meta-functions. It cannot be accessed by any other
In our usual website development process, not all of the pages are in the background query out a DataTable or list and then bound to the DataGrid. We may also encounter a certain variable in the foreground that needs to be backstage, or a way to
1.java modifier access Rights--public,protected,private,default (package,friendly)classes, generic variables, and methods that are modified by public can be accessed by any class within and outside the package;classes, generic variables, and methods
Object-oriented process-oriented programming???? Analyze the problem into steps , then use the function to encapsulate each step. The function is called sequentially according to the actual business logic.???? Step: This step refers to the code
The article uses examples to illustrate the details of object-oriented access control Public, private, and protected in PHP5. If you need them, please refer to them.
In PHP5, the object-oriented mechanism is enhanced, and access control mechanisms
The differences between self,parent,this in PHP class, and examples
I easily confuse public,private,protected, and it's easy to confuse this,self with these things. I have written an article about public,private,protected Blog, the following is
first, file format1. For files that contain only PHP code, we will ignore "?>" at the end of the File. This is to prevent extraneous spaces or other characters from affecting the Code.For example:$foo = ' Foo ';2. Indentation should be able to
the Java Language fully supports object-oriented inheritance, encapsulation, polymorphism, and purely object-oriented programming languages. Java is object-centric, and the entire program consists of a class (the smallest program unit in java). Java
Android Fragment, androidfragment
Since Fragment appeared, I have been talking about Fragment for a while. I feel like you can talk about anything with Fragment. I have to ask if Fragment can be implemented ~~~ Haha, isn't it a bit ~~~
This blog
I 'd rather get tired and be lazy.
-- 1-2-3
Summary
You have never seenRegular ExpressionAlternativeApplication.Even if I amSpoofIt cannot be.Welcome eggs and Slate Tiles.
Introduction
I wonder if you like to write 10 eight private fields first,
In Java:
The access permissions in Java include public, private, protected, and default package access permissions. If the attribute methods in the class do not show the specified access permission, the package access permission is granted, I like
The life cycle of a Java virtual machineThe bounden duty of a runtime Java Virtual machine instance is to be responsible for running a Java program. When a Java program is started, a virtual machine instance is created. When the program shuts down,
What is the difference between PHP function method_exists () and is_callable ()? In the design process of the PHP face object, we often need to make a judgment when calling a method whether it belongs to a class, commonly used methods are
1. Understanding reflection in Java 1.1 What is the reflection of JavaJava reflection is a mechanism that allows us to get the class's internal information such as functions, properties, parent classes, interfaces, and so on at run time. Reflection
1, understand object-oriented programming ideas and object-oriented characteristics;Object: Everything is object, all things are objects, in the program, we can think of classes, interfaces, methods, properties and so on as objects;
Structured programming and object-oriented programmingInstitutional programming: In the early stages, procedures were designed using flowcharts and top-down methods. This approach breaks down a big problem into smaller tasks and then writes a
member Inner class:Equivalent to a non-static member of a class, which can be decorated with permission modifiers, including private, protected, public.1. Define the member inner classClass Outter {Non-static inner classClass Inner {Inner class
1, the concept of reflectionJava reflection mechanism is in the running state , for any class, can know all the properties and methods of this class, for any one object, can call any of its methods and properties This dynamic acquisition of
ECMAScript 5 was the first to introduce the concept of "strict mode" (strict). Strict mode allows you to select a more rigorous global or local error condition detection within the function. The advantage of using strict mode is that you can know
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.