PHP School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a PHP Expert!

Join 309,249 PHP Programmers for FREE! Get instant access to thousands of PHP experts, tutorials, code snippets, and more! There are 2,547 people online right now. Registration is fast and FREE... Join Now!




Ok I have a test

 

Ok I have a test, for a job

supersssweety

5 Oct, 2007 - 07:58 AM
Post #1

D.I.C Regular
Group Icon

Joined: 16 Mar, 2007
Posts: 340



Thanked: 3 times
Dream Kudos: 125
My Contributions
I have told the recruiter my experience w/ PHP which is just a simple module in drupal... drupal5.glyphnet.com (my modules) and I have password protected a folder that makes you input your email and a given password and then mails you email to someone while redirecting you to a page. He said that is fine and he is going to give me an interview just for formalities and I will start Wed...this means a 12000$ increase in my pay smile.gif but I have to pass this test and I don't want the answers from you guys, because I am going to be doing this at work so I need to KNOW what I am doing, but I just want a little further explination and I would like to know if I have done any of this in my module I created:

1. What is the value of $x in the given situation:

$a = 0;
$x = ($a > 0)
false zero is not greater than zero
That's right right?



2. Write a short PHP function that would return the next to last key (not value) in an array when an array is provided as a parameter. If there are not two or more elements in the array, the function should return false.


how is an array provided as a parameter? Could you guys also just give me a little more explination of what is going on and maybe point me to some resources of examples





3. Write some HTML containing a button and an input field. When the button is pressed, the button face will be set to the value of the input field.

I get this...resources examples?






4. Write a function called stripslashes_r($array) that can recursively perform stripslashes() on the values of a multi-dimensional array.

wtf is a striplash and how do I go about doing a multi-dimensional array?
resources and examples please...

Going to look at tutorials and snippts and bury my head in php.net
Thanks in advance for your guidance


User is offlineProfile CardPM
+Quote Post


Posts in this topic
supersssweety   Ok I have a test   5 Oct, 2007 - 07:58 AM
skyhawk133   I'm actually going to let snoj take a stab at ...   5 Oct, 2007 - 08:03 AM
supersssweety   I'm actually going to let snoj take a stab at...   5 Oct, 2007 - 09:02 AM
supersssweety   Here is what I have for the button, and nothing ha...   5 Oct, 2007 - 08:29 AM
Jody LeCompte   (snowj and skyhawk are both on this thread, I...   5 Oct, 2007 - 08:31 AM
supersssweety   (snowj and skyhawk are both on this thread, I...   5 Oct, 2007 - 08:46 AM
supersssweety   ok so here is what I have come up w/ for the butto...   5 Oct, 2007 - 08:36 AM
Jody LeCompte   I'm going to assume it's required you use ...   5 Oct, 2007 - 08:46 AM
skyhawk133   Thanks for helping out Jody! And welcome to dr...   5 Oct, 2007 - 08:52 AM
Jody LeCompte   It's all pretty simple stuff once you undig a ...   5 Oct, 2007 - 08:52 AM
supersssweety   ok so I got the first one worked out, I am really ...   5 Oct, 2007 - 08:57 AM
Jody LeCompte   You want the form's method to be post and the ...   5 Oct, 2007 - 09:02 AM
Jody LeCompte   The only thing that bit of code could return is TR...   5 Oct, 2007 - 09:07 AM
snoj   <?php $a = 0; $x = ($a ...   5 Oct, 2007 - 09:20 AM
supersssweety   here is what I have for the form, but it doesn...   5 Oct, 2007 - 09:24 AM
snoj   Change $_POST[$replace] to $_POST[...   5 Oct, 2007 - 09:26 AM
supersssweety   Change $_POST[$replace] to $_POST[...   6 Oct, 2007 - 07:09 PM
Jody LeCompte   It could be an assumed "greater than or equal...   5 Oct, 2007 - 09:28 AM
snoj   *sigh* Go back, look at your code and run it thro...   5 Oct, 2007 - 09:36 AM
Jody LeCompte   See, this is the thing I've always hated about...   5 Oct, 2007 - 09:02 PM
supersssweety   kk so I am back...sorry I abondoned this post, but...   6 Oct, 2007 - 07:01 PM
snoj   kk so I am back...sorry I abondoned this post, bu...   7 Oct, 2007 - 11:22 AM
supersssweety   That is a ternary expression and they are extrem...   7 Oct, 2007 - 11:26 AM
supersssweety   ok so this: <?php $a = 0; $x = ...   7 Oct, 2007 - 06:23 AM
snoj   Take for example.... //Ternary $x = (0 ...   7 Oct, 2007 - 11:33 AM
supersssweety   YAY ITS DONE! PHP Skill Assessment Please ...   7 Oct, 2007 - 06:14 PM
serializer   My four-line answer: 1. true 2. function array_...   10 Oct, 2007 - 07:57 PM
supersssweety   I GOT THE JOB YAYAYAYAYAY!!!! the ...   8 Oct, 2007 - 04:18 PM
nbarten   btw, for the button, wasn't this easier? ...   10 Oct, 2007 - 09:36 AM
Jody LeCompte   So, by ambigious, you mean. "Is this tool goi...   11 Oct, 2007 - 06:49 PM

Fast ReplyReply to this topicStart new topic

Time is now: 11/26/09 09:48AM

Live PHP Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

PHP Tutorials

Reference Sheets

PHP Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month