Use the function below to search a string within a string. This function is case-insensitive. Use stristr for case-insensitive and strstr for case-sensitive.
This is a simple PHP function to detect Mobile UA (User Agent). You can uncomment line 24 and line 28 to get which user agents got caught by this function. Returned values are ‘mobile’ if UA is mobile and ‘computer’ if not mobile.
In this post, you’ll learn – How to Validate Forms with PHP and it will be a server side form validation. We will create a user registration form at first, and then we will validate fields of that form such as name, email, phone number, birth date, bio etc.
In this tutorial we will learn, How to Create XML From PHP. For this tutorial, you must have basic knowledge of PHP and XML. If you are new to PHP and/or XML, I recommend you to see the tutorials on PHP and XML from links below.