1--TEST-- 2SPL: SplFileObject::getFlags 3--CREDITS-- 4Ricardo Oedietram <ricardo@odracir.nl> 5Erwin Poeze <erwin.poeze@gmail.com> 6#PFZ June PHP TestFest 2012 7--FILE-- 8<?php 9 10$fo = new SplFileObject(__FILE__); 11 12$fo->setFlags(SplFileObject::DROP_NEW_LINE); 13var_dump($fo->getFlags()); 14 15$fo->setFlags(SplFileObject::READ_AHEAD); 16var_dump($fo->getFlags()); 17 18$fo->setFlags(SplFileObject::SKIP_EMPTY); 19var_dump($fo->getFlags()); 20 21$fo->setFlags(SplFileObject::READ_CSV); 22var_dump($fo->getFlags()); 23 24?> 25--EXPECT-- 26int(1) 27int(2) 28int(4) 29int(8) 30