$symbol is an array, which you will fill with the possible characters in your password.
For instance, let's say you have A-Z, and 0-9 for possibilitys in your password.
So, you would populate $symbol as such:
$symbol = array(0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z);
Set the mt_rand range between 0 and 35.
Let's say it pulls "9", so the first character in your password is 9. Next mt_rand pulls 35, so the second character is "Z".
Etc etc for as long as you want it to go.
$symbol can be populated with any symbol or character (or multiple characters/symbols) you can figure out to use.