Sometimes I donβt want to do anything.
I just want to have instructions so that I can set a breakpoint.
In c and objective-c we have while (false);
Say I want to break a function
-(void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; self.navigationItem.leftBarButtonItem=nil; self.navigationItem.rightBarButtonItem=nil; [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(updateDisplays) name: NotificationUpdateArroworLocation object:nil]; PO(self.tableView.indexPathForSelectedRow); while(false);
At .net we have donothing (Not sure if I did this?).
What should we use in php?
source share