Editing
PHP Skills Tests
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Language specifications == '''Q: What kind of regular expression does PHP include?''' (multiple choice) <ol style="list-style-type:lower-latin;"> <li>PCRE</li> <li>Java REGEX</li> <li>Ruby REGEX</li> <li>None of the above</li> </ol> '''A: (a) PCRE''' `preg` is a wrapper for the PCRE (Perl-Compatible Regular Expressions) library. However, an answer submitted to [http://hlam.com.ua/expertrating/question.php?id=12931 the cheaters' site] says the answer is (d) None of the above. ---- '''Q: Is the PHP float type guaranteed to be 64 bit IEEE?''' <ol style="list-style-type:lower-latin;"> <li>yes</li> <li>no</li> </ol> "64 bit IEEE" translates to "double-precision floating-point format," meaning a float value occupies 64 bits (8 bytes) of memory. * 1 bit for the sign * 11 bits for the exponent * 52 bits for the fraction. From the [http://php.net/manual/en/language.types.float.php PHP documentation]: <blockquote>'''Although it depends on the system, PHP typically uses the IEEE 754 double precision format''', which will give a maximum relative error due to rounding in the order of 1.11e-16. </blockquote> Which to me suggests that while you should assume that it's IEEE 754 double precision, it is not in fact ''guaranteed''.
Summary:
Please note that all contributions to Littledamien Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Littledamien Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information