如何使用Drupal内容中字段的相对数据作为PHP脚本中的变量?

如何使用Drupal内容中字段的相对数据作为PHP脚本中的变量?,php,drupal,Php,Drupal,我对PHP一无所知,但希望使用特定字段中的数据作为该页面上进度条的变量。根据字段中的值,每个页面将动态地具有不同的值。。。你明白了 下面是我将要使用的PHP脚本- <!-- Bootstrap CSS --> <link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> <div class=&q

我对PHP一无所知,但希望使用特定字段中的数据作为该页面上进度条的变量。根据字段中的值,每个页面将动态地具有不同的值。。。你明白了

下面是我将要使用的PHP脚本-

<!-- Bootstrap CSS -->
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" />
<div class="container-fluid">
<div class="progress">
<div aria-valuemax="100" aria-valuemin="0" aria-valuenow="83" class="progress-bar progress-bar-success progress-bar-striped active" role="progressbar" style="width:83%">83%</div>
</div>
</div>
if ($node = menu_get_object()) {
  $some_field_items = field_get_items('node', $node, 'field_some_field');
  // etc...
}