Well, yes and no. The first one is not fully PHP (but a pseudo-code of what it should do) and second one has other parts missing. Take the first one and fix the non-php parts (with information in the second one) and you get the operations you want to do.
|