What does /[^ -~]/ match?

I just started writing PHP again after a few years on other languages and I read through some of my older scripts, and found this regular expression that I can't seem to remember writing, and I can't seem to find an answer for what it does.

I just started writing PHP again after a few years on other languages and I read through some of my older scripts, and found this regular expression that I can't seem to remember writing, and I can't seem to find an answer for what it does.

The context is cleaning up some user input. Does it have anything to do with UTF8 or Latin character ranges?

$keyword = preg_replace('/[^ -~]/iu', '\\S{0,1}', $keyword);


PHP Interview Questions with Solutions: Prepare for PHP Interview

PHP Interview Questions with Solutions: Prepare for PHP Interview

Prepare for PHP Interviews. Set Variable With php.ini File. Logic & Output Behind PHP Code Segment. Class Concept, Error & Functions in PHP. Start PHP Now!

Description
In this course you will be introduced with some tricky questions that everyone face during their interview. In each solutions I have included some useful functions which we generally use at the time of development also. I have covered the following area in my course with Questions, Attractive Presentations and Practical Solutions that will help you to understand the logic behind PHP in a different way.

Some useful functions
PHP error types
Class concept
Access specifiers public, private and protected
Set variable with php.ini file
Operators introduced in PHP7
Logic and its output behind some code segment
Basic knowledge
PHP7, XAMPP Server, Notepad++
What will you learn
This course is build for the person who is facing interviews. Every question is well explained with the practical solution through videos. So that everybody can prepare themselves for the tricky questions asked during interviews
To continue:

PHP Programming Tutorial | Online PHP Certification Training

PHP Programming Tutorial | Online PHP Certification Training

Knowledge of PHP, the most popular back end language on the web can be yours, all at $9! Supplement your knowledge of html and JavaScript and add value to your CV. This course from Simpliv will make you a lot more employable in the market. Begin to take strides in your development career!

Description
This completes it.

PHP is the stepping stone to your first professional development gigs

PHP is the most popular back end language on the web.

Companies like Facebook and Tumblr use PHP as their primary back end coding language. It's in universal demands, and, as a new developer you're expected to know you're way around the front end and the back end. That's where PHP comes in.

There was a time when a web developer could get away with knowing just HTML and some Javascript, but now as employers are looking for more value, you have to know more. PHP lets you access an entire world of backend databases, like mySQL which is introduced in this course.

FACT: With PHP knowledge you'll be able to complete more advanced projects and be more employable.

People ask all the time: What's the best past to becoming a professional developer?

People going in to web development need two types of technical knowledge. First, they need to know how to manipulate content in a browser. That's where HTML5 and Javascript come in. But they also need to be able to interact with backend systems like eCommerce systems, databases and content management systems.

With PHP, developers:

Create systems by which data can be stored and retrieved in a database
Interact with eCommerce systems facilitating sales, credit card processing and shipping all over the world
Create complex content and customer management systems customized for industry use.
Create plugins and customizations for the most the most popular content management systems in the world, Wordpress, Drupal and Joomla (all of which are written in PHP!)
Who is the target audience?

New developers who want to add PHP to their tool aresneal
Web Designers who want to start writing code
Teachers and students
Current developers who need to learn PHP
Basic knowledge
Successful students in this course have a working knowledge of HTML
Successful students in this course can work with web browsers to navigate the internet
This course works on Mac or PC or even Linux with a few modifications
What will you learn
Set up a PHP Web Server
Integrate PHP with HTML code
Call PHP Pages from HTML
Use the echo() and print() functions
Integrate HTML with echo() and print() functions
Declare and use constants
Declare and initialize PHP variables
Understand the type of values held in PHP variables
Use arithmetic operators to perform math functions
Use comparison operators to make logical comparisons
Understand basic if statments
Create complex if statements which facilitate multiple outcomes
Use the PHP switch statement
Work with while loops.
Identify when a do while loop is appropriate and use it
Code a for loop
Create simple arrays
Use a for...each statement to loop through an array
Create associative arrays
Understand and use multidimensional arrays
Identify and use the superglobal arrays included in PHP
Use string functions to manipulate strings
Convert strings to arrays and vice-versa
Use hashes and encryption to enhance application security
Write simple functions
Write functions that take arguments and return a value
Read and write text files to the server
Read, write and parse CSV files
Set, read and delete cookies
Create sessions
Pass session variables between PHP pages
Expire sessions as required
Send plain text and HTML emails using PHP
Use a database to create a complete CRUD app
Store data in the database
Retrieve data from the database
Modify and delete database data
To continue:

PHP Programming Language - PHP Tutorial for Beginners

Learn the PHP programming language in this full course / tutorial. The course is designed for new programmers, and will introduce common programming topics using the PHP language.



Learn More

PHP for Beginners - Become a PHP Master - CMS Project

Python and PHP Programming Bundle

How to build a Laravel REST

Build a Basic CRUD App with Laravel and Vue

PHP OOP: Object Oriented Programming for beginners + Project

Write PHP Like a Pro: Build a PHP MVC Framework From Scratch

The Complete PHP MySQL Professional Course with 5 Projects

Learn PHP Programming From Scratch

Course developed by Mike Dane. Check out his YouTube channel for more great programming courses: https://www.youtube.com/channel/UCvmINlrza7JHB1zkIOuXEbw