PHP Classes

File: tests/Utf8LtrimTest.php

Recommend this page to a friend!
  Classes of Lars Moelleken  >  Portable UTF-8  >  tests/Utf8LtrimTest.php  
File: tests/Utf8LtrimTest.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Portable UTF-8
Manipulate UTF-8 text strings in pure PHP
Author: By
Last change: styleci issues
trim('0002', '0') returns '0002'
expected is '2'

(bool)('0') is false

the same problem is in ltrim and rtrim
Date: 11 months ago
Size: 2,991 bytes

You need to be a registered user and login to get this file.

1,601,753 PHP developers registered to the PHP Classes site.
Be One of Us!

Login Immediately with your account on:

FacebookGmailHotmailStackOverflowGitHubYahoo
For more information send a message to info at phpclasses dot org.