Search found 7 matches
- Tue Mar 09, 2010 5:41 am
- Forum: PHP - Code
- Topic: variation of string::explode() that works?
- Replies: 6
- Views: 556
Re: variation of string::explode() that works?
thanks that seems to work... ugly tho' it may be 
- Tue Mar 09, 2010 5:31 am
- Forum: PHP - Code
- Topic: variation of string::explode() that works?
- Replies: 6
- Views: 556
Re: variation of string::explode() that works?
that does half the job
i've got an array with count() of 1 like expected, but the value "a" is in cell [2]
i could grab the count()-1 from before the array_filter and use that to point to the value afterwards, but that seems a bit contrived...
i've got an array with count() of 1 like expected, but the value "a" is in cell [2]
i could grab the count()-1 from before the array_filter and use that to point to the value afterwards, but that seems a bit contrived...
- Tue Mar 09, 2010 5:26 am
- Forum: PHP - Code
- Topic: Array on Form - Passing it to PHP
- Replies: 4
- Views: 267
Re: Array on Form - Passing it to PHP
$arrCod = Array();
$arrCod = explode("\n", $_POST["cod"]);
?
$arrCod = explode("\n", $_POST["cod"]);
?
- Tue Mar 09, 2010 5:17 am
- Forum: PHP - Code
- Topic: PHP variable inside CSS file
- Replies: 3
- Views: 254
Re: PHP variable inside CSS file
or you could have the style in the html (included from another file) and have all the php you want to form that
<head>
<style>
<?php include("style.php"); ?>
</style>
</head>
<body>
...
<head>
<style>
<?php include("style.php"); ?>
</style>
</head>
<body>
...
- Tue Mar 09, 2010 4:57 am
- Forum: PHP - Code
- Topic: quick and basic question about arrays
- Replies: 2
- Views: 100
- Tue Mar 09, 2010 4:48 am
- Forum: PHP - Code
- Topic: variation of string::explode() that works?
- Replies: 6
- Views: 556
variation of string::explode() that works?
$arr = explode("/","//a"); why do i get 2 empty cells before "a" in my array? $arr[0] == "" $arr[1] == "" $arr[2] == "a" count($arr) == 3 what i'd expect is $arr[0] == "a" count($arr) == 0 not sure about the php version, phpinfo i...
- Tue Mar 09, 2010 3:23 am
- Forum: PHP - Code
- Topic: quick and basic question about arrays
- Replies: 2
- Views: 100
quick and basic question about arrays
say you've got 2 arrays á la $arr1 = Array(); you've added some content to both and now you want to replace one's content with the other's (so as to have 2 identical arrays) will this work? $arr1 = $arr2; or do you have to first delete the content of $arr1 and then add each element of $arr2 individu...