Collaborative Information Site

Programming

Properties and Methods in PHP

posted by infokita 8 months ago
tags: php programming

Properties and Methods in PHP - Each class has properties that are sometimes called attributes. Properties of a car such as color, size, price and so on. In the class, properties are represented by a variable. For example $color, $price, and so on. Method is something that can be done by object. The method in PHP is synonymous with a function. Methods that may belong to a car for example, methods to turn the car, run the car, stop the car, and so forth. Naming properties and methods have the same rules as naming a variable or function. However, based on the convention, naming properties and methods must use camel caps, where each word begins with uppercase except the first word, each word is combined with no spaces or under-scores(_).

Properties and Methods in PHP Adding Properties (Variables) Consider the example of defining the class and its properties, as follows: class Car{ var $color; var $brand; var $price; // Add method definitions here} The class variable can also be directly initialized with a value. Ho continue reading
5 visits |0 Comments

What web designers can learn from web developers

posted by enriquewestusa 10 months ago
tags: web programming mobile software

Mostly designers keep distance from development process of product. They tend to focus only on visual elements of the design. They play only with color, layout, spacing. All Designers want their creations to be as visually looking cool and good as possible, because they know this feeds directly into the overall quality of user experience and feelings.

Designing is more than ‘making it pretty’.

In fact, every efforts and money you spent in user experience (UX) can convert into growth income for your business. UX is more crucial part of website design – and not just from the user’s side.

That’s why, a web designer should learn from web developers to get some ideas. Next time when you start your next design take some time to focus on the following elements, and you will build a web people want to love to visit and use.

Provide Security;

Sometime websites need visitor’s personal information if you are also asking your visitors to share their personal information, they must be sure th

continue reading
8 visits |0 Comments