protected function parseUserId($info) {
    // Find the row containing "User ID : xxx".
    preg_match('/User ID\s+:\s+\d+/', $info, $matches);
    if (!empty($matches)) {
      // Extract the ID from the row.
      list(, $uid) = explode(':', $matches[0]);
      return (int) $uid;
    }
  }
protected function parseUserId($info) {
    // Find the row containing "User ID : xxx".
    preg_match('/User ID\s+:\s+\d+/', $info, $matches);
    if (!empty($matches)) {
      // Extract the ID from the row.
      list(, $uid) = explode(':', $matches[0]);
      return (int) $uid;
    }
  }
protected function parseUserId ( $ info ) { // Find the row containing "User ID : xxx". preg_match ( '/User ID\s+:\s+\d+/' , $ info , $ matches ) ; if ( ! empty ( $ matches ) ) { // Extract the ID from the row. list ( , $ uid ) = explode ( ':' , $ matches [ 0 ] ) ; return ( int ) $ uid ; } }
Parse user id from drush user-information output.
Parse user id from drush user - information output .