Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $name = $_GET["name"];
- $email = $_GET["email"];
- $list = array
- (
- '$name', '$email',
- );
- $file = fopen("list.csv","w");
- foreach ($list as $line)
- {
- fputcsv($file,split(',',$line));
- }
- fclose($file);
- ?>
- Deprecated: Function split() is deprecated in F:xampphtdocstest.php on line 22
- Deprecated: Function split() is deprecated in F:xampphtdocstest.php on line 22
- fputcsv($file,split(',',$line));
- $list = array
- (
- "$name", "$email",
- );
- $list = array
- (
- $name, $email,
- );
- foreach ($list as $line)
- {
- fputcsv($file,split(',',$line));
- }
- foreach ($list as $line)
- {
- fputcsv($file,explode(',',$line));
- }
Add Comment
Please, Sign In to add comment