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.
PHPMailer, you may have used it before and of course you should know PHP too to continue this tutorial otherwise you won’t get anything. PHPMailer is very handy – easy to use among all 3rd party mail sender application available out there. PHPMailer supports nearly all possiblities to send email: mail(), Sendmail, qmail & direct to… [Read More]
Check the first part of this PHP tutorial – PHP Tutorial – a Beginner’s Basic PHP Guide Part 1 before continue reading this part. Working with Strings in PHP A string is traditionally a sequence of characters or symbols. Generally there is no limit of charecters on a string in PHP. String Functions Very common string… [Read More]