My knowledge in matrices is not that great, but from what I understand the first one refers to Weak-Perspective Projection. This is meant as a "simple" way to give the illusion of 3D. The only thing it does it to make the objects with big Z values appear smaller on the screen, so it divines both the X and Y with Z.
The second matrix is the standard matrix for perspective projection, where it transforms everything in the camera's frustum (depending on its near/far plane, and left/top/right/bottom values) to a cube extending from -1 to 1 in all dimensions. Usually after this transformation, vectors are again (like in Weak-Perspective Projection) divined by Z, but that is not part of this matrix.
The results from the Weak-Perspective Projection are not ideal. Maybe this picture can help understand why:
More information on both matrices on Wikipedia - 3D projection