w10schools
Login Register
  • Home
  • Tutorials
    • HTML, CSS
      • HTML, HTML5
      • CSS, CSS3
    • XML
    • JavaScript, AJAX
    • PHP
    • Ruby on Rails
      • Ruby
      • Rails
    • ASP.NET
      • ASP
      • C# .NET
    • Java
      • JSP
    • Databases
      • MySQL
      • MSSQL Server
      • Oracle
    • Web Server
      • Windows
      • Linux
      • Apache
      • IIS
    • Design
      • Dreamweaver
      • Flash
      • Photoshop
      • Fireworks
      • CorelDRAW
      • Illustrator
  • References
    • HTML
      • Bootstrap
    • CSS
      • CSS Selectors
      • Sass
    • JavaScript
    • Mobile Apps
      • Cordova
    • Ruby on Rails
      • Ruby
      • Rails
    • PHP
      • Function
      • Language
      • CodeIgniter
      • Phalcon
      • PHPUnit
      • Symfony
      • Drupal
      • Yii
      • Laravel
    • Perl
      • Perl
    • Python
      • Python
      • Django
      • NumPy
      • Pandas
      • scikit-image
      • scikit-learn
      • Statsmodels
      • Matplotlib
    • Lua
      • Lua
    • C, C++
      • C
      • C++
    • Server
      • Docker
      • Apache HTTP Server
      • Nginx
    • Database
      • PostgreSQL
    • Big Data
      • TensorFlow
    • Game Development
      • Phaser
      • LÖVE
  • Articles
    • News
    • General
      • Website Promotion
      • Online Advertising
      • Make Money Online
    • Editorials
    • Interviews
    • Web Roundups
  • Resources
    • Design
      • Fonts
      • Graphics
      • Vectors
      • Templates
      • UI (User Interface)
      • Brushes
      • Patterns, Backgrounds
      • Textures
    • Web Development
      • HTML, CSS
      • XML
      • JavaScript, AJAX
      • Ruby on Rails
      • PHP
      • Java
      • .NET
      • Python
      • Perl
      • Flash
    • Mobile Application Development
      • Mobile Development Tools
      • Swift
    • Online Services
      • Online Storage
      • Web Hosting
  • Tools
    • Generators
  • Bulletin
  • Posts
doc_Phalcon
doc_Phalcon


Text::reduceSlashes

public static reduceSlashes (mixed $str) Reduces multiple slashes in a string to single slashes echo Phalcon\Text::reduceSlashes("foo//bar/baz"); // foo/bar/baz echo Phalcon\Text::reduceSlashes("http://foo.bar///baz/buz"); // http://foo.bar/baz/buz

Text::RANDOM_NUMERIC

integer RANDOM_NUMERIC

Text::RANDOM_NOZERO

integer RANDOM_NOZERO

Text::RANDOM_HEXDEC

integer RANDOM_HEXDEC

Text::RANDOM_ALPHA

integer RANDOM_ALPHA

Text::RANDOM_ALNUM

integer RANDOM_ALNUM

Text::random

public static random ([mixed $type], [mixed $length]) Generates a random string based on the given type. Type is one of the RANDOM_* constants echo Phalcon\Text::random(Phalcon\Text::RANDOM_ALNUM); //"aloiwkqz"

Text::lower

public static lower (mixed $str, [mixed $encoding]) Lowercases a string, this function makes use of the mbstring extension if available echo Phalcon\Text::lower("HELLO"); // hello

Text::increment

public static increment (mixed $str, [mixed $separator]) Adds a number to a string or increment that number if it already is defined echo Phalcon\Text::increment("a"); // "a_1" echo Phalcon\Text::increment("a_1"); // "a_2"

Text::humanize

public static humanize (mixed $text) Makes an underscored or dashed phrase human-readable echo Phalcon\Text::humanize('start-a-horse'); // 'start a horse' echo Phalcon\Text::humanize('five_cats'); // 'five cats'

Page 20 of 382

|< < Prev 17 18 19 20 21 22 23 Next > >|
  • Facebook
  • Tweet
  • Digg it
  • Stumbleupon
  • Delicious
  • Plus Share

Designed by : w10schools

service@w10schools.com

Our Partners: aeeble – Providing content publishing and search solutions