You're looking for foreign keys. Basically you can't have an array in a database unless it has it's own table.
Users Table userID PK other data Friends Table userID -- FK to users's table representing the user that has a friend. friendID -- FK to Users' table representing the user id of the friend