When we use the htmlspecialchars () function then if a user tries to submit the following in a text field: - this would not be executed, because it would be saved as HTML escaped code, like this:Note that the is redundant as the answers suggest this short-tag expands to an echo with a semicolon added to the end, as per the php documents. The first thing we will do is to pass all variables through PHP's htmlspecialchars () function. When we use the htmlspecialchars () function then if a user tries to submit the following in a text field: - this would not be executed, because it would be saved as HTML escaped code, like this: Validate Form Data With PHP. We will not talk about the resource type here, since it is an advanced topic.Validate Form Data With PHP. A common example of using the resource data type is a database call. It is the storing of a reference to functions and resources external to PHP. The special resource type is not an actual data type. We recommend that you add a php.ini configuration file see the 'Configuration' section for details.PHP Resource. $ docker run -d -name my-running-app my-php-app. Then, run the commands to build and run the Docker image: $ docker build -t my-php-app. Where src/ is the directory containing all your PHP code.