Category: PHP

0

Connect PHP to MySQL

To access the data stored in a MySQL database, you should first connect to MySQL database server. PHP offers two different ways to connect with the MySQL database.

0

PHP addslashes Function

The PHP addslashes function is used to add backslashes in front of some predefined characters in a string. This function is case-sensitive.

0

Escape characters in PHP

Escape characters are the equivalent characters for a purpose. The main purpose of using an escape character is to notify the compiler or interpreter, that a particular character is having special meaning rather than it’s normal meaning.

4

PHP chop Function

The PHP chop function is used to remove white-space or other characters from the right end of a string. This is an alias of rtrim() function and is case-sensitive.

0

PHP echo() Function

The PHP echo function is used to output one or more strings. As echo is not a real function, you are not required to use parenthesis with it

0

PHP bin2hex() Function

The PHP bin2hex function is used to convert binary data into hexadecimal representation.

0

PHP String handling functions

PHP String handling functions can help you to easily manipulate strings. In this article, we’ll cover some of the most commonly used string handling functions in PHP.

0

PHP Constant

In programming, a constant is a value whose value cannot change during the execution. Unlike variables, the name of a constant doesn’t have a $ sign before its name. A constant name can start with a letter or underscore.

0

PHP Data types

Datatypes are used to hold different types of values. PHP supports the following 8 primitive datatypes. These datatypes can be further categorized into three types.