Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $sql_assoc = "SELECT test FROM test"
- foreach ($sql_assoc as $result){
- foreach ( $result as $key => $value ) {
- $keys = $key;
- echo " " . $keys;
- unset($sql_assoc[$key]);
- }
- }
- Output
- Unwanted Result Wanted Result Wanted Result Wanted Result etc.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement