PHP removes the tail space and decimal point of a string

time:10-07-14 forum:PHP tools and code
  For example, sometimes it is necessary to compare the two strings when they are the same, when there are spaces behind some strings, or with a small number, the results are repeated, so the following code is removed and compared.
[code].lt;? Php
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /

prev:Simple text filtering function of PHP next:PHP encryption and decryption thunder, F...
post comment
Notice



approved   Ji'nan Qianfo Hill Xingguo monastery...   2017 SONY children's life is a conce...   Massaging the acupoints can relieve ...   Baby swimming pool built in Britain   The survival record of women scienti...
rand   PHP implementation of Web screenshot   Snap2HTML - hard disk file generatio...   PHP random number generation and use...   Talk about 10 MySQL mistakes that PH...   10 MySQL errors that PHP developers ...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com