How to run code in PHPStorm

藏色散人
Release: 2018-12-12 09:43:40
Original
27089 people have browsed it



PhpStorm is a PHP commercial cross-platform IDE based on JetBrains' IntelliJ IDEA platform. PhpStorm provides PHP, HTML and JavaScript editors with dynamic code analysis, error prevention and automatic refactoring of PHP and JavaScript code.

How to run code in PHPStorm

#How to use phpstorm to run HTML or PHP code?

1. Run HTML code

Running HTML code is actually very simple. We can open an HTML file, right-click the mouse and click Run. (Here we are using the Chinese version of phpstorm. Friends who need it can refer to phpstorm Chinese tutorial)

How to run code in PHPStorm

2. Run the PHP code ( Console display)

First we can open a PHP file, right-click the mouse, select Run, and then select the corresponding PHP script.

How to run code in PHPStorm

The following interface appears, where you need to configure the PHP version. Click on the options shown below.

How to run code in PHPStorm

Choose the PHP version. For more PHP version options, click the "..." logo to add selections.

How to run code in PHPStorm

# Then click Apply and confirm, it will jump directly to the following interface, where we can run it directly.

How to run code in PHPStorm

The running results will be displayed directly on the console.

How to run code in PHPStorm

Of course, whether it is HTML or PHP code, we can also run it directly on the browser to view the results, as shown below, click on the top right of the code editing interface Just use the browser.

How to run code in PHPStorm

This article is a detailed introduction to the phpstorm running code. It is also very simple. I hope it will be helpful to friends in need!



The above is the detailed content of How to run code in PHPStorm. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template