get first and last (key and value) array multidimesional Programming Web Development by cussel …, how to get first and last (key and value) array multidimesional below? $data1 = array( array( '0'=>array( '7'=>'chelsea… Re: get first and last (key and value) array multidimesional Programming Web Development by LastMitch >get first and last (key and value) array multidimesional Can you provide the array code so we can understand you better. Multidimesional Arrays in C Programming Software Development by ashwinperti Sir, I want to multiply a 2-D array of size 100 by 100 a[100] * b[100]; or a[100][100]; What is the way to multiply the two arrays. Ashwin Perti Re: Multidimesional Arrays in C Programming Software Development by Ancient Dragon Your first example is ALMOST how to multiply two arrays. A[100] does not exist in an array with 100 elements. you have to create a loop and multiply each array element in array A by the corresponding element in array B. Then the result has to be stored someplace, either in array C, or back in A or B. Afterall, if the result isn't stored … Re: Multidimesional Arrays in C Programming Software Development by ashwinperti I want to know whether it is possible for the arrays to store the large result that would come out after sop much of maths. Ashwin Perti India Re: Multidimesional Arrays in C Programming Software Development by Ancient Dragon I don't really understand the question -- but there is no magical way to multiply two arrays. c++ does not support matrix algegra like you would see in a math class. You have to code the loops yourself, unless you want to buy (beg, borrow or seal :cheesy: ) it from somebody else. Re: Multidimesional Arrays in C Programming Software Development by ashwinperti But there should be some way. If we can use pointer in the place of array is it possible Ashwin Perti Re: Multidimesional Arrays in C Programming Software Development by Rashakil Fol You need to be WAAAAAAAY more clear. Multiplication of two integers or floating point approximations is well-defined and everybody knows what you mean. Multiplication of arrays is not. Do you want to make a multiplication table? That's one interpretation, and since you mentioned a two-dimensional array, that seems possible. However, there … Re: Multidimesional Arrays in C Programming Software Development by Ancient Dragon [QUOTE=ashwinperti]But there should be some way. If we can use pointer in the place of array is it possible Ashwin Perti[/QUOTE] You are writng c or c++ program NOT fortran. If you want the compiler to do high-level math then use a fortran compiler, which will PROBABLY do what you want (I don't know and don't care! :) ). When you write c and… Re: Multidimesional Arrays in C Programming Software Development by ashwinperti there is situation like this: main() { int a[100],b[100]; int i,j,k,n; /* we have elements in a[100] = {1,2,3 .. 100} we have elements in b[100] = {1,2,3 .. 100} */ Multiply the two numbers. How to do the Multiplication. } Answer this. Ashwin Perti Re: Multidimesional Arrays in C Programming Software Development by Rashakil Fol [QUOTE=ashwinperti] Multiply the two numbers. [/QUOTE] This makes no sense. There are two hundred numbers, and 10000 plausible combinations of them. Re: get first and last (key and value) array multidimesional Programming Web Development by diafol Sorry to post a putative solution, but the contrivance made an explanation difficult without it: foreach($data1 as $ktop=>$dtop){ foreach($dtop as $v){ $value2 = end($v); $key2 = key($v); $value1 = reset($v); $key1 = key($v); $newarray[$ktop][] = array($key1=>$value1,$… redirecting url Programming Web Development by shawtyred74 Hi, I am trying to create a playlist using a multidimesional array. Where the user will select a song to hear … Arrays Programming Software Development by NestaMarley … February 1945" } }; return personArray; } /**Shows the contents of the multidimesional Array * */ private void personalDetailsContent( ) { logger.debug( "personalDetailsContent()" ); String… Re: Arrays Programming Software Development by NestaMarley …( "personalDetails()" ); return personArray; } /**Shows the contents of the multidimesional Array * */ private void personalDetailsContent( ) { logger.debug( "personalDetailsContent()" ); String… Re: modifying the same member of many objects Programming Software Development by LieAfterLie Okay, I'll use a multidimesional array to store the 'objects'. I just thought it would … Re: redirecting url Programming Web Development by diafol You can certainly do this with DB, an array, or with XML or json data. The problem with an array, as is, is that you haven't included an id or an url. The id just gives a hook to link to the url to insert into an mp3 player. I've used xspf player in the past: [url]http://musicplayer.sourceforge.net/[/url] It's flash-based and allows you to apply … Re: redirecting url Programming Web Development by shawtyred74 so I just add an url to to each song in the array...I have to do this in php and cannot use anything else but html Re: redirecting url Programming Web Development by diafol well the app I mentioned uses php to create the xml playlist, or at least the solution I created did. Was a while ago. Twas a throw-away project, so unfortunately I don't have it anymore. You can only use html? Are you using html5 audio? Most online mp3 players use flash. The odd one may use Java. How are you playing said songs? Re: redirecting url Programming Web Development by shawtyred74 I am suppose to reference each song to a url link such as you tube using href in mutli dimensional array holding the songs such as if they select the song impossible by christina it should direct them to this link [url]http://www.youtube.com/watch?v=-vtRSTM1zMo[/url] Re: redirecting url Programming Web Development by diafol Ok, is this a homework assignment? Re: redirecting url Programming Web Development by shawtyred74 is is an extra credit assignment or school Re: redirecting url Programming Web Development by diafol OK, so far you've got radio buttons in your html? How about showing your complete code? We need to see how you've constructed the html from the php array. Re: redirecting url Programming Web Development by shawtyred74 This is my input form with the radio buttons that I have so far...but I am trying to figure out what to do on the output form ...such as when they select a song how do I have to play the song automatically. Do I used href and the url and put it in the array next to each song? [CODE] What Song would you like to hear:<br> <html> &… Re: redirecting url Programming Web Development by diafol [QUOTE=;][/QUOTE] [CODE]$songs => array( "Pink Floyd" => array( array("Comfortably Numb", "/tracks/pf/uio.mp3"), array("Wish You Were Here, "tracks/pf/wish.mp3") ), "Meic Stevens" => array( array("Nos Du, Nos Da","tracks/meic/… Re: redirecting url Programming Web Development by shawtyred74 thanx alot I think I understand how to add a url to the array. I am going to try it and see Re: redirecting url Programming Web Development by shawtyred74 ok everything is good except the video is not showing. Is it possible to embed a youtube video in php? if so how? Re: redirecting url Programming Web Development by Rauny Hello this is very nice thread. Thanks For sharing sch a nice information. Take care. Re: redirecting url Programming Web Development by diafol YT in php - you can store the id and 'transplant it into a generic YT iframe container via ajax. OR you can store the entire iframe (see embed code in YT itself) in the array. An example of the whole code: [CODE]<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/… Re: redirecting url Programming Web Development by diafol Yes it works: [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title&…