certificationy / php-pack Goto Github PK
View Code? Open in Web Editor NEWA series of questions to prepare for the Zend PHP certification
Home Page: http://www.zend.com/en/services/certification/php-certification
License: MIT License
A series of questions to prepare for the Zend PHP certification
Home Page: http://www.zend.com/en/services/certification/php-certification
License: MIT License
Is there an error?
Line 236 in eea5c4b
Current question is quite ambiguos:
Which of the following functions are used with the internal array pointer to accomplish an action?
Also there is error in answer definition (correct: next)
I suggest this version:
https://github.com/certificationy/php-pack/blob/master/data/questions.yml#L199
key "valuse" it's incorrect.
Regarding https://github.com/certificationy/php-pack/blob/master/data/questions.yml#L108
fwrite
expects two arguments, a resource and a string to output and returns the number of bytes written. I can't think of a case when (and why) it should return a STDERR resource. So I think the answer is clearly wrong
$ php -r 'fopen("php://stderr");'
PHP Warning: fopen() expects at least 2 parameters, 1 given in Command line code on line 1
Regarding https://github.com/certificationy/php-pack/blob/master/data/questions.yml#L697
The question doesn't (explicitly) state that it is about matching the string as a whole. The answer flagged correct is the only one that does that ... however if it is just about matching the string (i.e. partially) then
php > var_dump(preg_match('/^[hp1-5]*\-.*/i', 'PhP5-rocks'));
int(1)
php > var_dump(preg_match('/[hp1-5]*\-.?/', 'PhP5-rocks'));
int(1)
php > var_dump(preg_match('/[hp][1-5]*\-.*/', 'PhP5-rocks'));
int(0)
php > var_dump(preg_match('/[PhP]{3}[1-5]{2,3}\-.*$/', 'PhP5-rocks'));
int(0)
php > var_dump(preg_match('/[a-z1-5\-]*/', 'PhP5-rocks'));
int(1)
... two more answers are correct.
So IMHO either the question should explicitly state that it is about matching the whole string or otherwise two extra answers should be flagged correct, hence changing it to a multiple choice question.
Hello,
In the travis configuration, we find an email address.
Why not hide it? Because we do not need to know it :)
Valid for all projects (symfony-pack, etc)
Regards,
Maxence
LINE - 405
correct answer from localhost testing is:
Notice: Undefined variable: data in C:\xampp\htdoc...
0
question: |
Assuming UTF-8 encoding, what is the value of $count?
$count = strlen($data);
answers:
- { value: '0', correct: false }
- { value: '4', correct: false }
- { value: '5', correct: true }
- { value: '7', correct: false }
but if you put $data inside single quotes '' than result is 5.
--> '$data'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.