Home Backend Development PHP Tutorial PHP formatting tool Beautify PHP small BUG_PHP tutorial

PHP formatting tool Beautify PHP small BUG_PHP tutorial

Jul 21, 2016 pm 03:51 PM
bug php tool format use

Beautify PHP, a very useful php formatting tool
http://www.bierkandt.org/beautify/
http://pear.php.net/package/PHP_Beautifier/download

Recently there are new people in the group, and it’s really uncomfortable when their code is not standardized

This tool is really easy to use, even the messiest code can be formatted instantly

Throw it under Linux and you can quickly batch process @.@

Okay, the following is the topic of this post:

Beautify When PHP formats symbols, the ^= and &= judgments are omitted,

In line 426 of beautify_php.class.inc, add these two symbols

                                                                                                  i > 0 AND !$ this->_comment) {
                                                         if (($a[$i] == "=" OR $a[$i] == "<" OR $a[$i] == ">" OR $a[$i] == "*")
                                                                                                       /", $a[$i-1]) == 0) {
                                                                    }
                                                                            >

http://www.bkjia.com/PHPjc/319047.html

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/319047.htmlTechArticleBeautifyPHP, a very useful php formatting tool http://www.bierkandt.org/beautify/ http: //pear.php.net/package/PHP_Beautifier/download Recently there are new people in the group and their code is not very standard...
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1672
14
PHP Tutorial
1276
29
C# Tutorial
1256
24
PHP performance optimization strategies. PHP performance optimization strategies. May 13, 2025 am 12:06 AM

PHPapplicationscanbeoptimizedforspeedandefficiencyby:1)enablingopcacheinphp.ini,2)usingpreparedstatementswithPDOfordatabasequeries,3)replacingloopswitharray_filterandarray_mapfordataprocessing,4)configuringNginxasareverseproxy,5)implementingcachingwi

PHP Email Validation: Ensuring Emails Are Sent Correctly PHP Email Validation: Ensuring Emails Are Sent Correctly May 13, 2025 am 12:06 AM

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl

How to enter the bull market in May 2025? Recommended on entry exchanges How to enter the bull market in May 2025? Recommended on entry exchanges May 12, 2025 pm 08:51 PM

Recommended exchanges for bull market in May 2025: 1. Binance; 2. OKX; 3. Huobi; 4. gate.io; 5. Sesame Open Door and other exchanges. The above exchanges are safe and reliable, and support a variety of currencies. This article provides detailed download portal addresses.

PHP Dependency Injection Container: A Quick Start PHP Dependency Injection Container: A Quick Start May 13, 2025 am 12:11 AM

APHPDependencyInjectionContainerisatoolthatmanagesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itactsasacentralhubforcreatingandinjectingdependencies,thusreducingtightcouplingandeasingunittesting.

Recommended for Bull Market Exchange in 2025 Recommended for Bull Market Exchange in 2025 May 12, 2025 pm 08:45 PM

Recommended exchanges for bull market in May 2025: 1. Binance; 2. OKX; 3. Huobi; 4. gate.io; 5. Sesame Open Door and other exchanges. The above exchanges are safe and reliable, and support a variety of currencies. This article provides detailed download portal addresses.

How to set, get and delete WordPress cookies (like a professional) How to set, get and delete WordPress cookies (like a professional) May 12, 2025 pm 08:57 PM

Do you want to know how to use cookies on your WordPress website? Cookies are useful tools for storing temporary information in users’ browsers. You can use this information to enhance the user experience through personalization and behavioral targeting. In this ultimate guide, we will show you how to set, get, and delete WordPresscookies like a professional. Note: This is an advanced tutorial. It requires you to be proficient in HTML, CSS, WordPress websites and PHP. What are cookies? Cookies are created and stored when users visit websites.

CSS ID and Class: common mistakes CSS ID and Class: common mistakes May 13, 2025 am 12:11 AM

IDsshouldbeusedforJavaScripthooks,whileclassesarebetterforstyling.1)Useclassesforstylingtoallowforeasierreuseandavoidspecificityissues.2)UseIDsforJavaScripthookstouniquelyidentifyelements.3)Avoiddeepnestingtokeepselectorssimpleandimproveperformance.4

What are the bull market coins in 2025? Where to buy them conveniently What are the bull market coins in 2025? Where to buy them conveniently May 12, 2025 pm 08:36 PM

Coin friends who soared in the bull market in 2025: 1. PI currency (suming 57.12% in 24 hours); 2. WIF currency (suming 44.59% in 24 hours); 3. KAS currency (suming 18.9% in 24 hours); 4. FLOKI (suming 17.98%); 5. PEPE (suming 15.45%). The above cryptocurrencies can be purchased on exchanges such as Binance, OKX, Huobi, gateio, etc. This article provides a detailed download entry address.

See all articles