note 120072 added to svn.constants

From: Date: Fri, 21 Oct 2016 00:16:55 +0000
Subject: note 120072 added to svn.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-206935@lists.php.net to get a copy of this message
To get these constants so you can reverse lookup what all the integers mean, do this: <?php $constants = array_flip($this->getSvnConstants('SVN_WC_STATUS')); $status = svn_status(); foreach($status as &$v) { $v['text_status'] = $constants[$v['text_status']]; $v['repos_text_status'] = $constants[$v['repos_text_status']]; $v['prop_status'] = $constants[$v['prop_status']]; $v['repos_prop_status'] = $constants[$v['repos_prop_status']]; } public function getSvnConstants($filter='SVN_') { $constants = array(); foreach (get_defined_constants() as $key => $value) if (substr($key, 0, strlen($filter)) == $filter) $constants[$key] = $value; return $constants; } ?> ---- Server IP: 72.52.91.14 Probable Submitter: 192.243.80.61 ---- Manual Page -- http://php.net/manual/en/svn.constants.php Edit -- https://master.php.net/note/edit/120072 Del: integrated -- https://master.php.net/note/delete/120072/integrated Del: useless -- https://master.php.net/note/delete/120072/useless Del: bad code -- https://master.php.net/note/delete/120072/bad+code Del: spam -- https://master.php.net/note/delete/120072/spam Del: non-english -- https://master.php.net/note/delete/120072/non-english Del: in docs -- https://master.php.net/note/delete/120072/in+docs Del: other reasons-- https://master.php.net/note/delete/120072 Reject -- https://master.php.net/note/reject/120072 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206935) next »