Category: PHP

PHP sizeof() Function

The sizeof() function is used to count the elements of an array or the properties of an object. This function is an alias of count(). The sizeof() function is an alias of the count() function. Returns the number of elements in the array Parameter Description array Required. Specifies the array mode Optional. Specifies the mode. […]

How to Add and Remove File Fields using jQuery and PHP

Today I’m going to share about multiple file upload in PHP. We’ll be using jQuery to add or remove new file fields. This one is useful when your system has multiple image upload or document management feature. You may also like How to Create Dynamic Add/Remove rows with input fields in HTML table using JavaScript and How to […]

Error Handling Using PHP

When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Try − A function using an exception should be in a “try” block. If the exception does not trigger, the code will continue […]