w10schools
Login
Register
In current category
Only my posts
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
Edit
Toggle Dropdown
In Place Editing
Advanced Editing
References
PHP
Symfony
Component
Intl
NumberFormatter
Language
Default
Markdown
NumberFormatter::setAttribute()
bool setAttribute(int $attr, int $value)
Set an attribute.
Parameters
int
$attr
An attribute specifier, one of the numeric attribute constants The only currently supported attributes are NumberFormatter::FRACTION
DIGITS, NumberFormatter::GROUPING
USED and NumberFormatter::ROUNDING_MODE.
int
$value
The attribute value
Return Value
bool
true on success or false on failure
Exceptions
MethodArgumentValueNotImplementedException
When the $attr is not supported
MethodArgumentValueNotImplementedException
When the $value is not supported
See also
http://www.php.net/manual/en/numberformatter.setattribute.php
Links:
http://api.symfony.com/master/Symfony/Component/Intl/NumberFormatter/NumberFormatter.html#method_setAttribute
doc_Symfony
2016-10-28 06:24:58
Comments
Leave a Comment
Please
login
to continue.
Popular Articles
NumberFormatter::setAttribute
(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Set an attribute public bool NumberFormatter::se
NumberFormatter
class NumberFormatter Replacement for PHP's native {@link \NumberFormatter} class. The only methods currently supported in this class are: {@link
setAttribute
setAttribute(arg0, arg1) Instance Public methods VOID setAttribute set the string value of an attribute by name BSTR arg0 --- name [IN]
NumberFormatter::parse
(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) Parse a number public mixed NumberFormatter::par
NumberFormatter::parseCurrency()
bool|string parseCurrency(string $value, string $currency, int $position = null) Not supported. Parse a currency number. Parameters
Return to View
Please login to continue.