concept number in category php

appears as: number, numbers, The number
Zend Framework in Action

This is an excerpt from Manning's book Zend Framework in Action.

Each component of the framework contains a number of classes, including the main class for which the component is named. For example, the Zend_Config component contains the Zend_Config class along with the Zend_Config_Ini and Zend_Config_Xml classes. Each component also contains a number of other classes that are not listed in figure 1.4. We will discuss the classes as we go through the book and learn about each component.

Figure 3.5. The unit tests are run from the command line using the phpunit script, which displays the number of tests and details of any failures.
Listing 8.8. Adding custom messages to our login form elements
$this->addElement('text', 'username', array('label' => 'Username')); $username = $this->getElement('username') ->addValidator('alnum') ->setRequired(true) ->addFilter('StringTrim'); $username->getValidator('alnum')->setMessage( 'Your username should include letters and numbers only'); $this->addElement('password', 'password', array('label' => 'Password')); $password = $this->getElement('password') ->addValidator('stringLength', true, array(6)) ->setRequired(true) ->addFilter('StringTrim'); $password->getValidator('stringLength')->setMessage( 'Your password is too short');

Now that we know a little about what localization and internationalization is, let’s look at what Zend Framework provides to make the process of creating an international website easier. We’ll start by looking at Zend_Locale’s ability to convert numbers and dates before moving on to investigate Zend_Translate’s functionality for providing translated text.

Clearly, we can then use this information to provide websites in the correct language with the right formatting of dates, times, and currencies, which will make our user feel right at home. Let’s look at numbers first.